Beginners - May 2013 (Page 42)

Hard Error
 
Hi, I have the following error: 1>------ Build started: Project: Extra Bonus Project, Configuration: Debug Win32 ------ 1> Extra Mark Project.cpp 1>Extra ...
[7 replies] Last: To get it to work, all you really need to do is give your line arra... (by Yanson)
Delete 2d dynamic array. Are these two things working exactly same to delete 2d?
 
Following is the code to delete a 2d dynamic array. Are these two groups of codes exactly same? for( int i = 0 ; i < ROWS ; i++ ) delete dynamicArray...
[no replies]
base class undefined?
 
My single error is that Base class SlotMachine is undefined. I have no idea how i am getting this error. To my knowledge im defining everything just fine. is t...
[7 replies] Last: oh wow, i see. thanks for that. greatly appreciated. i was able to a... (by spiritedDedication)
Beginner Coding Probs
 
I am beginner and i am trying to make a simple game. This code is good until the second question where it doesn't work no matter what. Please help. #inc...
[2 replies] Last: - Your second switch statement should be placed before the break sta... (by thejman250)
Pointer arithmetic
 
Is pointer offset notation; pointer arithmetic?
[9 replies] Last: Didn't know. Learnin' every day. (by S G H)
Using arrays in classes
 
For some reason this won't work. Can someone please help me #include <iostream> class Testclass { int test ; }; int main() { Testclass ...
[1 reply] : You're trying to use C++11 initialization syntax, but you're using a C... (by AbstractionAnon)
Please help me understand what this question is asking
 
This is a practice problem from a book, "Jumping into C++" by Alex Allain: "Implement the source code that turns numbers into English text for numbers betwee...
[2 replies] Last: Hahah, yes. Well I just wanted to be clear. Thank you. (by whatisjeff)
by teand2
Convert Console Program to Cammand Line
 
Below is my program in console format. Can anyone tell me how to convert it to a command line program. We didn't really go over it in class so I have no idea ho...
[8 replies] Last: char** arg is equal to char *arg Now, about arguments, intData.o... (by JockX)
need to find number of repeating char
 
why am i getting zero? int count=0; string numCG ="cg"; for (string::iterator it = dna .begin(), endOfString = dna .end(); it != endOfString...
[4 replies] Last: From your silly code it is not clear what dna and endOfString are and ... (by vlad from moscow)
Help with Body
 
Hello All, I need help with the body of this program. Can someone give me a reference or example to look on to give me an idea. This is what I have so far....
[2 replies] Last: Thank you very much for the start of the search. (by svanhornf15)
Linked list using pointers implementation: Runtime error (presumed due to pointers in a class)
 
I'm trying to create a linked list using pointers.(full code at the bottom) A node would look like this: template <class T> struct elem { T value; ...
[2 replies] Last: I WUB YOU keskiverto. Ty! Lol, so much derp. This was my first C++ pro... (by popescustefanradu)
by bsay91
Using sizeof() within a function
 
I can get the sizeof() function to work for my array airports within the main(), it comes up with 4 (the correct answer). However when trying to use the ex...
[5 replies] Last: OK here is my conclusion ... c++ is a crazy language! No I'm joking. O... (by bsay91)
need to find frequency of letters
 
i need to find the frequency of letters. here is my code what am i doing wrong void QubiEngine::nucl_frequency() { int freqA=0; int freqT=0...
[4 replies] Last: The copy doesn't seem necessary at all. Why not get rid of assigning a... (by Daleth)
by teand2
Function to Return Multiple Datatypes
 
OK the main question is how to make a function that returns different data types. A minor question is the warnings im getting for getch(); below. Errors: 1...
[5 replies] Last: Oh I figured it out. Thanks Mod (by teand2)
user defined manipulators
 
I am trying to write a code that will accept integers into a vector and then will take a number with more than 3 digits ex. "2431" and then use a class called c...
[1 reply] : By "user defined manipuators" do you mean "operator overloading"? That... (by JockX)
vector of structs help
 
I am trying to store a text file that contains 3 columns ( unsigned int/ string /float) of 57 rows into a vector that holds a struct of 'items'. With my code wr...
[2 replies] Last: thank you (by dustin0219)
Id returned 1 exit status
 
Hi everyone .. I just want to ask if someone can help me with this sh**. I can't compile niether Hello World program it says Id returned 1 exit status . Please ...
[2 replies] Last: More than likely you already have it open. But you can also try to bui... (by giblit)
Tic Tac Toe program
 
Hello. I am trying to write a tic tac toe program for class. So far so good. I'm just having a few problems.One, I cant figure out how to tell if there is a dia...
[1 reply] : there are only two cases for diagonal wins so you could do something l... (by giblit)
by jidder
Trouble with classes
 
Hey I was wondering if there is any way for me to use the "mass" variable from object.h in Mechanics.h ? For example if I were to create an object called "bal...
[13 replies] Last: @ jidder Well after 5 pages worth of discussion, we have arrived at ... (by TheIdeasMan)
by teand2
Run Errors
 
Sorry for the page stretch. OK my program is shutting down mid-program and giving me the errors below, How would I go about fixing it? 'projecttwo.exe': Loa...
[10 replies] Last: Ahh! I see but I need it to check both of them together. Or can I put ... (by teand2)
May 2013 Pages: 1... 4041424344... 66
  Archived months: [apr2013] [jun2013]

This is an archived page. To post a new message, go to the current page.