Beginners - April 2011 (Page 41)

Need help Calling a function..Also Review my code
 
Specifically on line 35. I'm not sure how I would do it. And also is my declaration correct on line ...
[2 replies] Last: Thanks man. I fixed it up. (by KentuckyNative)
If not pointing to else ?
 
Ok so i am writting a small game and i have a problem I have it BETA LOCKED with a code and here...
[4 replies] Last: Oh Thank you (by adrianooo231)
Impose numeric limit on user input?
 
Hi, I'm working on an input/output tutorial Ii got from the cprogramming.com website, and I've been ...
[11 replies] Last: I know its a matter of preference, since i was putting my opening brac... (by LameSaint)
by cczhao
strange and unexpected outcome
 
The code: 6 void 7 reverse(char *digits, int len, string &reversed) { 8 cout << "digi...
[4 replies] Last: yeah, you are right, statement is reversed .... my blinded eyes :( thi... (by cczhao)
Trying to compare characters within two strings
 
Hi, I am trying to compare a student's answers to an answer key, and each one is a string, contai...
[2 replies] Last: What method you use would largely depend on what data type you use to ... (by lnk2019)
Changing a const parameter
 
Dear all, I was trying to cheat the compiler a bit, changing the value of a const parameter. Like t...
[5 replies] Last: Hi Noobie, thanks for reminding me that I read that once :-P But I als... (by chucthanh)
Complex matrix
 
I have a exercise, i can't do it.Please help me: "Multiply 2 complex matrix" Thank alot!
[15 replies] Last: thanks everyone, now i can do my homework by myself Thank you very muc... (by tuandt5)
Fastest 32bit image file
 
Whats the fasted 32bit image file available? And does anyboad know how they are loaded into either O...
[2 replies] Last: The internal representation of images(textures) used by gl or dx is th... (by hamsterman)
Nested while loops
 
I am trying to read in from two files and write out all posaible out comes. File "A" has two line...
[4 replies] Last: I get it now. Thank you for your help. (by toadmar)
by BJG
declaring a 2d array using pointers?
 
I am trying to declare a 2d array using pointers as it needs dynamic memory allocation. I know for l...
[4 replies] Last: this is how to create 2D array where 2-nd dimenzions are diferent-> ch... (by sasanet)
Reading several lines from file
 
Hi again, Finally got my linker error solved and now am having trouble when reading data in from a...
[5 replies] Last: Brilliant! It's now reading them all in, but as soon as the read is co... (by zdcoombs)
by empT3
Simple swap function not swapping
 
I got it in my head to start writing some simple sorting algorithms a little while ago and decided t...
[2 replies] Last: Thanks chucthanh, that solved it! (by empT3)
static & extern function ???
 
hy, thanks for reading... i'm learnig C++ 2 weaks so far and wanna ask if: does enything like this ...
[2 replies] Last: thanx guestgulkan, I get it now :) however i'm confused with static q... (by sasanet)
[Win32 Console] broken integer?
 
Hi guys, I have little problem with my program, I've started to learn c++ and now I wanna make custo...
[6 replies] Last: but after calling player.getHP() it will print player's HP on screen, ... (by mekkatorqu)
Best or not
 
Hello I am using a site http://www.beitcertified.com . I want to ask that is it helpful or not?...
[2 replies] Last: there are much better sites than this one. for example ofensivesecuri... (by sasanet)
genetic algorithm TSP
 
anyone who heard of GA TSP, you should've heard that you first need to generate a bunch of parents. ...
[no replies]
Classes
 
Hello everyone, i am having a major hard time understanding how classes work, i have read the tutori...
[3 replies] Last: Short explanation: Classes are basically just compound datatypes you c... (by hanst99)
Repeat code
 
I have finally created my first script in C++ completely alone and it works! But there is one thing ...
[10 replies] Last: return 0; causes the program to return an exit code from main, which... (by Lynx876)
cin.ignore()
 
I was following some tutorials and i noticed that they use cin.ignore(255, '\n'); a lot. I understan...
[2 replies] Last: http://www.cplusplus.com/reference/iostream/istream/ignore/ 255 equ... (by eraggo)
Moving data between classes in a program
 
I have a program which is meant to simulate some aspects of a banking system by using classes. It do...
[4 replies] Last: See this is one of my main problems, I was given a list of the functio... (by rassilon256)
April 2011 Pages: 1... 3940414243... 55
  Archived months: [mar2011] [may2011]

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