Beginners - April 2011 (Page 22)

Craps Game
 
Hi guys, i'm doing a 7 week C++ course at the min and am struggling to keep up. Any help on the following is appreciated. Background Info: The game of c...
[2 replies] Last: Cool, thanks Zap. Have a bit of reconfiguring to do but think think i'... (by BurgerBob)
Phone number program
 
Hey there guys, I'm doing a program that can read multiple phone numbers and output the numbers or error codes based on what's put in. Specifics: Write a pr...
[2 replies] Last: Anyone able to help? (by Mdogg2005)
Video game Player + scores
 
Hey there guys, I'm doing a program that requires me to take the player names and scores and then display every player listed with their score and after that di...
[1 reply] : Im a beginner aswel and this is what I have so far: #include <iost... (by mobat)
by pooshi
Returning ppointer
 
Hello gents. I need to return a pointer to base elements in an image and I am totally lost. Any suggesting would be great to get me going. // image.cpp #...
[17 replies] Last: I have tried what you mentioned hamsterman, "return &myImage", and it ... (by pooshi)
Video game Player + scores
 
Hey there guys, I'm doing a program that requires me to take the player names and scores and then display every player listed with their score and after that di...
[2 replies] Last: I assume you're using single dimentional arrays. Your inputData() rou... (by kooth)
by tonnot
How to insert data into a map
 
I have a Map that stores row col data. In case of insert or deleting rows and cols, i have to do some work.... For example I have map ,map , map , an...
[15 replies] Last: Yes, and it should be just a couple of lines of code. Good luck! (by kooth)
by tonnot
Little diferences betwen GetProcessMemoryInfo and the memory use reported by taskmanager (winxp)
 
I use the GetProcessMemoryInfor to get info about the memory consume of my app. GetProcessMemoryInfo( hProcess, &pmc, sizeof(pmc)) ) { pmc.PageFau...
[no replies]
Complexity of a C++ source code
 
Hello. ANybody can tell me how can i calculate the complexity of the following source? thanks in advance.. t1=clock(); int g,count; int line ; for (int z...
[3 replies] Last: anyone? :\ (by whocares21)
code::blocks win32 tutorial?
 
Hello, i recently got interested in programming win32 programs. The tutorials i find, however, use all kinds of features of microsoft visual c++. Can someone po...
[3 replies] Last: You can try to copy the code from the tutorial. (by Bazzy)
Memory leak?
 
Dear all, I started a program with pointers. There seemed to be a problem with memory leak that I did not know how to fix properly. I had to create an arr...
[3 replies] Last: Yeah, thanks... I will be more careful. (by chucthanh)
this is a question for my assignment.
 
The requirements are related to a simple Robot game class. The robot is created with a name, a position (row and column) and the initial energy level of 60 unit...
[2 replies] Last: #include "stdafx.h" #include <iostream> #include <string> #include ... (by randidi)
classes
 
what is the purpose of getter function in classes and how to write constructor in classes.
[1 reply] : For encapsulation purposes. Constructor for classes is the name of th... (by Acr)
Got probs here...
 
Dear world! I'm A totally beginner, so don't say i'm A noob. I know i am... I get worng output when i try to compile this program: ______________________...
[4 replies] Last: Also i think that i didn't got any errors becourse i've used Microsof... (by Moschops)
Help with error
 
First off before anyone ask... yes this is homework. I have managed to get the basic of the program to compile and run correctly and now I'm working on the las...
[2 replies] Last: Ya, I figured out the problem about 2 seconds after I hit post... 'nex... (by kaylachris)
classes
 
what is the purpose of getter and setter function in classes.
[6 replies] Last: thanx guys (by rizwan khan)
by toak
Converting binary to decimal loop problem
 
Hello everyone, I've been trying to debug this problem for a while but the results make no sense to me. cin >> binary; decimal = converter(binary); int c...
[1 reply] : Perhaps you are crossing a maximum? Check the maximum value an int can... (by Acr)
Inline thingy?
 
How and why would you use the inline ? So far I heard that its used for vectors(linear algebra)& initialization, but I didn't quite understand it. ...
[2 replies] Last: thanks (by Blessman11)
by Hyl
Global arrays
 
Hi guys, have a question to ask here.It seems that my sum function can't fetch the modified values from global array B after scan function has been called. But ...
[2 replies] Last: Thanks :)!! Can't believe I missed that lol. It's my first time post... (by Hyl)
by IvanLi
need help on c++ link list
 
hello experts, i create a link list of char and input a lot of words in it. and now i wanna use iterator to modify it, if the current element is 'c' and next ...
[6 replies] Last: no worry, i feel much clear now, thx ^^ (by IvanLi)
by tonnot
A vector data that 'dissapears' between calls
 
I have this function std::vector <vector<std::string> > W_win::memories () { std::vector <vector<std::string> > provector; cProcesses = 10...
[3 replies] Last: And passing a pointer is faster ? No. A reference is actually a kind ... (by coder777)
April 2011 Pages: 1... 2021222324... 55
  Archived months: [mar2011] [may2011]

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