General C++ Programming (Page 8)

error: expected initializer before ‘void’
Well every time I try to compile my code using make command I get this error... and help? // ===...
[16 replies] Last: // ==================================================================... (by darklord1)
how to use recursion to send alphanumeric characters onto a stack and a queue?
Literal homework text: " ...Using recursion, add each alphanumeric character to both a stack and...
[no replies]
Implementing collision detection correctly
I'm making a 2D Terraria-like (side-scrolling RPG with destroyable blocks) game with SFML 2.1, and I...
[7 replies] Last: Thanks, I think I finally have an idea of what I'm doing now. (by Bosslard)
#include <iostream> #include <string> struct Class {}; struct A : virtual public Class { int nu...
[4 replies] Last: No, it's not the virtual inheritance that confuses me. It's why you wa... (by LB)
by Ispil
The Final SegFault; Hashtable for an Unordered_Set
Well, I've eliminated segfault after segfault, only having one more left- and this one's a doozy. Ag...
[8 replies] Last: Ignore them- they're really me just blabbering nonsense to myself. Any... (by Ispil)
by Dkob1
Code Problem
I tried it but I keep getting it wrong, I wrote what I have after the question. Given three vari...
[3 replies] Last: I got it wrong though. (by Dkob1)
Updating An Array In A Grading Program
OBJECTIVE OF THE PROGRAM The program will grade a series of exams and then print a grade report for...
[1 reply] : You could have an integer for each grade. example: int grade10; int ... (by fabtasticwill)
multi-character character constant error message?
I keep getting this warning message and I do not know how to fix it. Is it because I'm using char ...
[5 replies] Last: well if you are creating it in c++ you should use iostream and use cou... (by giblit)
Need help with Tic Tac Toe game program (specifically the while loop)
Hi, I have no idea why the while loop of my program isn't working. When my code is like this: ...
[5 replies] Last: but it shouldn't prevent stuff from showing up on the console window.... (by giblit)
beginner,want this program to call the relevant functions,calculate final price
Hi I am a beginner in programming I want this programming to call functions choose between a custome...
[1 reply] : Use code tags #include... (by Bdanielz)
by Ispil
Segmentation Fault
I managed to get my code to a nearly-function state, but now I am suffering from an obnoxious segmen...
[3 replies] Last: Yes, my silly mistake on 70 and 88. Fixed that up. As for 114, changed... (by Ispil)
Confused about this pointer arithmatic
/* strchr example */ #include <stdio.h> #include <string.h> int main () { char str = "Thi...
[2 replies] Last: thanks so he should use str type int, not string... (by csstudent123)
Variable in system()
I have a bit of code which uses system() the command it gives has parameter1 which changes all the t...
[3 replies] Last: It is a namespace where all names from standard library are stored. ht... (by MiiNiPaa)
by vxk
Advice Pointers
what are the list of precautions that one should take while using "raw" pointers.Putting the questio...
[1 reply] : what are the mistakes that people make when using raw pointers. 0) ... (by MiiNiPaa)
[HELP] Parsing string to recognize Trigo Functions
Hi guys, I need your help badly. how do I create a function that can understand trigonometric...
[no replies]
by Ispil
Forward Declaration Mis-Match
Well, I've run into a snag. I have two classes that rely heavily on each other through references in...
[3 replies] Last: Nevermind, solved it myself- turns out that you can include one class'... (by Ispil)
Where do i start array to vector
i am new to programming and just recently graduated from high school taking my first programming cla...
[2 replies] Last: > Where do i start array to vector Start here: (by JLBorges)
Using constructors in template class
The code below references to a header file and implementation .cpp file, which are not important. My...
[2 replies] Last: You have a problem with your includes... DELETE #include "pair.h" ... (by novellof)
by Ispil
Undefined Reference, Overloaded Operators, What?
This is for the same code as I mentioned in the earlier two questions. In this case, I need to figur...
[5 replies] Last: Thanks! Go figure that it is always something little like that that ke... (by Ispil)
matching colors
I have to write a program for school that displays a random sequence of colored squares, each square...
[2 replies] Last: c++ <iostream> <graph1.h> this is the code so far that I have. I jus... (by greatsoccerman)
Pages: 1... 678910... 46
  Archived months: [jul2014]

Cannot post in this page. To post a new message, go to the first page.