Beginners - March 2008 (Page 5)

by xian67
Input File Question
 
I'm trying to allow a user to enter a file name and if they do not have one default to one. However, I'm having an issue determining if it should be a do-while...
[no replies]
by Raupi
Question about array (multidimensional)
 
Hello! I don't know if this is the correct forum, sorry, i am new here.. Well... i am using this method of array declaration: char* aFieldMain { "name...
[2 replies] Last: Hi! Hm.... okay then.... i think i'll continue using the old one.. ... (by Raupi)
Tabbing Through Controls - Programmatically
 
zimzum17_1998@hotmail.com virtual bool IsInputKey(Keys keyData) //override { if (Keys::Tab == keyData) { return true; } else { ret...
[11 replies] Last: Garfbradaz, Sorry have not had any time to look into this and am stil... (by closed account z05DSL3A)
by Fasine
Question about .dll's
 
Greetings! My game is now operational (and totally dumb, haha) and I tried showing it to a few friends. The library I'm using is designed using the DirectX 9 SD...
[3 replies] Last: I think that windows is looking for dlls in the current working direct... (by ropez)
Building a release in Visual C++
 
Hi, I've had a good search of the forum but found nothing similar to my problem. I can compile a basic win32 project which just displays a window and some rando...
[3 replies] Last: Ok... i've been told to either staticly link the dlls using /MT under ... (by averageGuy)
by cva
void**
 
what is the meaning of void**....
[3 replies] Last: Thanks for ur guidence wolf and ropez......sorry wolf, technical error... (by cva)
by stulo
three-dim arrays
 
im supposed to make a three dimensional array using the conditions of cars, the models, and the years, would it be char?
[3 replies] Last: its a program replacing the hardcopy of the Kelly Green Book of car va... (by stulo)
by BMH
[Vectors] pushing coordinates in a vector
 
Hi, I'm creating a snake like game for the console. As you know: when the snake eats food he becomes longer. I'm trying to push the coordinates of the player...
[15 replies] Last: thanks for the explanation. I got a question about for loops: for... (by BMH)
how to pass argv[] to template class?
 
Hi everyone. I have a problem with passing program argument to template class. program usage: progname inputFile dataType (for example progname in1.txt dou...
[3 replies] Last: No, you can't do that either. You can't have a conditional typedef. ... (by ropez)
char * ??????
 
Hi all. I am trying to get my head around pointers. I created a little program:: #include <iostream> using namespace std; int main () { char a =...
[4 replies] Last: Yes, you can cast any pointer to void*. You can also assign any pointe... (by ropez)
by xm1014
Parsing a text file
 
I have been given an assignment to create a record for each book that is listed in an inventory text file. The first line of the file has the total number of bo...
[8 replies] Last: I see where I made my mistake, and, yes atoi(line) is the correct way ... (by xm1014)
help
 
Hey i need help in repetition, i am completely lost. My question is to write a c++ program which finds the average of the measurement obtained by the students...
[1 reply] : Sounds like a while loop to me - have you learned how to write one of ... (by Ganon11)
problem with fstream::open()
 
Eh i tried to open a file with the standard code: fstream outf; outf.open ("Height.txt", ifstream::in | ifstream::trunc); if(!outf) { cout << "cou...
[3 replies] Last: It might be a good idea to use ofstream ad ifstream, rather than a gen... (by Ganon11)
String Variable not Recognized?
 
Sorry for posting another question on the same day... but I've run out of ideas for this one. Basically, I'm making a simple program with a class (Car) and a...
[5 replies] Last: Alright I got it working with that, thanks for the help! (by Orca239)
by mohsin
whats DLL?
 
can anyone please tell me what is dynamically linked library?
[1 reply] : http://msdn2.microsoft.com/en-us/library/ms682589(VS.85).aspx (by closed account z05DSL3A)
error at end of program?
 
Unhandled exception at 0x7c918fea in Elevation2.exe: 0xC0000005: Access violation writing location 0x3935373e. omg, what is this? I have finally got my progr...
[no replies]
by Fasine
Simple Question...
 
I'm looking at making a bitmask function for collision detection in my game, the function would need to take a bitmap and store one value if each pixel is trans...
[2 replies] Last: Thanks for the response. I was actually more worried about performance... (by Fasine)
by Wolf
Total function!!!
 
Hi, How can I write a separate function that sums up all the values of the cells of the array that I inserted it below and then show the total in the main fu...
[3 replies] Last: This should work: #include <iostream> #define height 2 #define w... (by tomao)
2 C++ questions
 
hi can anyone solve these 2 questions? using loops and if statements Exercise 2: Write a C++ program to performing the following: • Read a positive ...
[1 reply] : Why don't you give it a shot yourself, then post your code with whatev... (by gzero)
C++ Formatting Help
 
Hi, I need help with a part of C++ formatting. I need to input a year, such as 2004, and display it in two ways: 2004 and 04 Most of the formatting I've tri...
[4 replies] Last: That helped alot and I got it working, thanks! (by Orca239)
March 2008 Pages: 1... 34567... 15
  Archived months: [feb2008] [apr2008]

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