Beginners - April 2010 (Page 32)

by SoloXX
GOTO alternative?
 
I'm in a beginning C++ class and I am having a little problem with redirection.I'm trying to find a way to redirect program logic back to a certain part in the ...
[13 replies] Last: You got caught in the infinite loop because a negative value was never... (by xeyide)
Gluing together parts to a vector arguement
 
In main I have the following variables: int a; vector<int> b; vector <int> c; I have given all of them values. I want to call a function f, int f(vecto...
[5 replies] Last: Ok cool I'll try that :)! Thanks for the help! (by TunaPete)
Writing to multiple lines to output file
 
I am trying to write a program that will take a character array and write it to the next line in the file. I figured out the first line but how do i keep writin...
[4 replies] Last: why did you have to declare char_array as a pointer? Thats just how d... (by hamsterman)
by Tripic
Instancing an object from a vector
 
Ok I am messing around and trying to get a grip on oop so i created a class called player that is meant to store each players dificulty level and there score bu...
[4 replies] Last: Actually that makes perfect since why i didnt thing of this before i h... (by Tripic)
Referencing the calling object?
 
I would just like to know if it's possible to reference the calling object in a member function as an object and not just by it's member data.
[2 replies] Last: Man, I already tried that and the compiler complained about it. But, y... (by gameman15)
linking problems...
 
im using an int from one cpp in another cpp using the 'extern int...' it compiles ok... but when it gets to linking i get this... mainScroller.obj : err...
[1 reply] : http://cplusplus.com/forum/general/21851/ (by Disch)
C++ 10x10 Grid and Image Upload?
 
Hello, Im new in C++ and I need to do a project were I have to create a 10x10 Grid and upload two images inside the board(10x10). Can anybody help me , h...
[1 reply] : There are a zillion ways to do that. Perhaps you could provide us w... (by Duthomhas)
C++ Excercises
 
Hey! The name is Doug. I've had classes in C++ and OOP, but you know the old saying, "If you don't use it, you lose it." What I am looking for is a seri...
[2 replies] Last: Thanks, firedraco. I saw that thread in your reply to a thread that ca... (by killingthemonkey)
by vlad61
c++ programs
 
can anyone point me to some opensource c++ written programs that are nicely fleshed out and maybe even have a gui, i.e-games, or anything else really...its way ...
[6 replies] Last: try this, though it's not GUI http://www.fredosaurus.com/notes-cpp/in... (by blackcoder41)
Overloading constructors
 
Compiler: Microsoft Visual Studio 2008 Language: C++ OS: Windows XP Hi, Im creating a Black Jack game and trying to use an overloaded constructor. I want t...
[2 replies] Last: Thanks Disch. Knew is was something simple I was overlooking. Have boo... (by skrug80sc)
by SoloXX
Infinite do-while loop
 
Been helped on this forum before with suggestions and ideas for assignments in my beginning C++ class. I used suggestions and got the response I was looking for...
[5 replies] Last: No problem! I'd be stuck on the bare basics if not for this forums, an... (by closed account jwC5fSEw)
how to exit this loop
 
I am trying to count number of lines. How do I stop this loop to print the number of lines. Professor told me to try ctrl+d. I tried but doesn't work. ...
[2 replies] Last: number of lines of what? (by blackcoder41)
while loop
 
can someone help me fix the while loop in my program. What i want it to do is to ask the user input the operation until it is either "+","-,"*","/". "operation ...
[7 replies] Last: Put the ! operator outside of the condition (i.e. !(operation == 'x')... (by closed account jwC5fSEw)
by Canen
Rand() to close to Rand()
 
Hi had a quick newb question. Lets say I was working on a game that a character was attacking a goblin. There will be 2 rand() used if the character hits th...
[2 replies] Last: I must have seeded it twice at some point in my code and didn't notice... (by Canen)
by Gorgro
Deleting objects from a vector
 
i've written a program in which i make several objects and place them in a vector. At some point during the program, i call a function that eventually deletes t...
[1 reply] : Just because you delete it doesn't mean the memory hasn't been given t... (by firedraco)
by broot
mem leak/crash
 
can anyone spot where the problem is in the code below? when i compile it, half the time it runs properly, half the time it crashes. thankyou main.cpp { ...
[2 replies] Last: doh... that seems to have done it. thankyou :) (by broot)
what's the "sizeof ()" argv?
 
hi there, i have this problem: i need to know the size of the argument strings of the program to be able to dinamicaly create the arrays for a command line and ...
[13 replies] Last: very intresting, thanks everyone ^^ (by closed account 236Rko23)
Array ordering and printing
 
Hello all, Have been attempting a very silly exercise concerning arrays and pancakes. Just trying to get the basics of my array ordering to work. I was s...
[no replies]
point of sale problem
 
i want to make my program compute for the change of the customer. for example if the total amout due is $90 and the customer paid $100. the program should answ...
[6 replies] Last: This is one way of many---probably not the best. Am I wrong but haven'... (by closed account iw0XoG1T)
by Stef
Simple Timing using GetTickCount()
 
Hello helpful C++ community, i'm new to these forums. Hope I get the format right...i've never tried adding code to a post and so on. I'm trying to create a ...
[1 reply] : I get a similar result for that code. I'm no expert, but I think the p... (by sammy34)
April 2010 Pages: 1... 303132333435
  Archived months: [mar2010] [may2010]

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