Beginners - January 2009 (Page 4)

Just looking for some feedback and advice on improving my program. Thank you!
 
Hey, guys this is a finished (but not perfect) piece of coursework that I have had assessed. Just wanted to get some perspective on it really. Any feedback and ...
[2 replies] Last: thanks, for the reply. As to the !(expressions), come to think of i... (by NannyCool)
First project in school using C++, need assistance
 
I'm doing my first project and I'm kind of in the dark on figuring out what I did wrong so if anyone can point out the issue or issues for me then that would be...
[4 replies] Last: Ok, everything is starting to make more sense now that i've been messi... (by rech0004)
by Jaymie
Use Class before Class Declaration
 
How do I declare a class after where you want to use it e.g.: in "main"? int _tmain(int argc, _TCHAR* argv ) { test.internalINTReturn(); // !!! Doesn't...
[5 replies] Last: Typically. Class A should be in it's own Header/Source file combinatio... (by Zaita)
using a for loop within a for loop problems
 
I have a for loop and I need to enter in sales for four quarters for each of the six divisions. The first example gives me my desired output.The second example...
[4 replies] Last: You should stick to standard convention of using i for the outter-most... (by Zaita)
by airowe
Undefined variables in an Object
 
// This is a homework question so I don't need the solution, just help getting there... How do I incorporate undefined variables for an Object and use them i...
[2 replies] Last: The line you've highlighted is creating an object called Employee. The... (by Zaita)
dynamically allocating a three dimensional array
 
hello, can any tell me how to dynamically allocate a 3d array and populate values into it and how to index into individual array element regards...
[3 replies] Last: Another approach is a vector of vector of vector. e.g vector<vect... (by Zaita)
responding in a sentence (cin?)
 
Suppose I wanted to answer a question like this in a sentence cout<<" What did you do today? \n\n"; how would i do that? How could be able to input a ...
[2 replies] Last: Using cin to get user input: http://www.cplusplus.com/forum/articles/... (by Zaita)
while(cin >>x) terminates program
 
I have just started learning C++. Every time I use a while (cin>>x) loop, when the loop is terminated no other input is accepted. Please can someone explain...
[7 replies] Last: while(getline(cin, input)) { // do stuff with input } is perfe... (by Zaita)
How to input a sentence and display an output based on your sentence?
 
Suppose I wanted to answer a question like this in a sentence cout<<" What did you do today? \n\n"; how would i do that? How could be able to input a ...
[2 replies] Last: http://www.cplusplus.com/forum/articles/6046/ (by Zaita)
Random Coordnate generator
 
In my Highschool Programming club we are trying to make a guessing game that works similar to Battleship, guess the cordinates that the Computer randomly genera...
[3 replies] Last: Why not use a C++ data structure instead of a 2D character array? A... (by Zaita)
test driven development using vs2008
 
does anyone use the unit testing tools that come with c++ visual studio 2008? i've used the c# unit tests but can't get the c++ version to work. i followe...
[1 reply] : Some good ones you can use are NUNIT and Boost::Test. As for setup ... (by Zaita)
Paint Multiple Rectangles
 
Hi guys, my objective is paint diferent rectangles i have this file: rectangle.cpp: #include <stdio.h> #include <windows.h> HBRUSH hBrsh; void Sele...
[2 replies] Last: You should draw at WM_PAINT message on your window procedure (by Bazzy)
by pabs
file manipulation
 
pretty basic problem but my C++ is pretty far back here's my problem I have to read a text file and parse all the different field ex: 001 R0S11 182...
[1 reply] : You can use iostream library. (by maros522)
by harryp
Bored out
 
I need some really mind-bending questions on c++ programming, utilising the concept of loops, arrays and structures. Any idea wherre can I find them??
[5 replies] Last: Thanks that was really good. (by harryp)
by harryp
Generating a circle
 
I want to generate a circle of radius given by user.But I can't get the draft of circle on paper and hence can't proceed with the program. I don't need full lo...
[4 replies] Last: Thanks a lot! (by harryp)
Unsure of my algorithm
 
I am very new to the programming world i was given an assignment and i've attempted the question but somehow i don't think its quite right can somebody please g...
[1 reply] : think there is a problem in you pseudocode logic, if RESULT is greate... (by Bazzy)
GNU Make File
 
I have c++ and when I try to open it, it says "There doesn't seem to be GNU Make file in PATH or in Dev C++'s Bin path. Please make sure that you have GNU Make ...
[1 reply] : Try re-installing ur c++ software. (by harryp)
Confused with library and header files
 
Hello. I would like to know the difference between a header file and the c++ library . I am using visual c++ 6.0, and in the include folder i can see a ...
[1 reply] : When using c++, you first have the build-in stuff. This includes the... (by Scipio)
by quant
C: translate int_32 to 8-bit
 
hello, So, if I converting ip address from 8-bit to int_32 type. address = (((((ip <<8)+ip )<<8)+ip )<<8)+ip ; But, which's way reverse that? I tried this w...
[2 replies] Last: id[3-i]=... Hm, I think what it's mistake, see to that... If I doi... (by quant)
pixel colors
 
so i want to make a program that will place the mouse at a certain color on the screen. The Screen that i want it to be looking at is on a web page. I know how ...
[no replies]
January 2009 Pages: 123456... 16
  Archived months: [dec2008] [feb2009]

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