General C++ Programming - July 2009 (Page 2)

assistance with final assignment
 
okay, i wouldnt be asking for help if i didnt need. im completely stuck and have no idea HOW to fix it. my teacher didnt really teach how to figure out these ...
[1 reply] : You can use string::find ( http://www.cplusplus.com/reference/string/s... (by Bazzy)
Returning an array of pointers.
 
Hopeing someone can help with how to return an array of pointers to structures. But the real trick is that the function return type must be char *. So he is w...
[6 replies] Last: How would I fill M with data after create_matrix? //prototype Doub... (by smhillis)
textures gone wrong
 
i have this 3d game im working on and the walls of this room are bricks. everything is fine, however when the player moves far away the picture of the bricks ar...
[3 replies] Last: I found this: http://www.cpp-home.com/tutorials/36_1.htm You could Go... (by helios)
Raising to power returns zero
 
I'm trying to find the maximum number of combinations for a given character set and string length using the formula charsetLength to the power of stringLength. ...
[1 reply] : GMP. You could also staple two long longs together and do the expon... (by helios)
Using a Matrix to Draw a Texture.
 
Alright so I'm confusing myself with Matrices at the moment and I'm not to sure if what I'm doing is right. Anyway what I want to do is fill a 3x3 Matrix with ...
[2 replies] Last: Lol, sadly I've been trying. (by Mythios)
Make a Download Program
 
Hello, I'm learning C++ and i like very much to develop file i/o aplications, and i want to know how i can develop a simple download program, but how i can d...
[2 replies] Last: Hello Helios, Thanks for the link about this library called curl , ... (by nathanpc)
by reddog
cant overwrite file
 
instead of printing to screen how can i overwrite my original file #include <iostream> #include <fstream> #include <string> #include <vector> #includ...
[2 replies] Last: ifstream does delete the contents of the file, unless the "app" flag i... (by mrHappyPants)
i do not get planes
 
i have been trying to make collision detection in a game i have been making. and the only way i have found so far is by making a sphere behind the camera and do...
[2 replies] Last: ok thanks. i will try to learn those topics to the best of my ability. (by poonninja)
macro parameter issues
 
lets say you have the form: MY_MACRO(TemplateClass<x,y>) the prepocessor sees the comma and thinks im trying to input "TemplateClass<x" and "y>" as paramete...
[6 replies] Last: thanks (by joe3dge)
Class Fraction...code needed
 
Class Fraction You are asked to develop a relatively complete mathematical module on fractions. You are required to use OOP concepts ONLY. Part A Crea...
[1 reply] : You are asked to develop the habit of finishing courseworks on your ow... (by wmheric)
problems in class
 
The questions are: 1. Define the class with its methods. a. The default constructor. b. The constructor accepts three parameters: brand, price and CC a...
[5 replies] Last: @Zhuge : I'm sorry.. it's not that i'm not intended to do it by myself... (by sue elle)
reStructure of code; include 2 void functions
 
does anyone have any advice? i created a program and it works fine. my teacher, however, is asking me to have my INPUT and OUTPUT to be subprograms such as ...
[2 replies] Last: You are quite on track in logically splitting the functions. Get the... (by mraman)
doesnt calculate what i want
 
after a lot of fussing, my code finally compiles properly. but once again, its not calculating the things i want. PROBLEM: doesnt calculate "scores entere...
[1 reply] : The code you are using to make your list (lines 38/39), don't look cor... (by firedraco)
game making troubles
 
i am making a game with opengl. its not actual a game. my idea is to just have a court yard and the user can walk around freely. the problem is i cant get the g...
[17 replies] Last: i noticed that after i posted it. i feel really stupid right now. lol (by poonninja)
virtual key codes
 
is there different key codes for vista. i have a program that i need to be able to push the up button bit it doesnt work i have tryed some different things. ...
[no replies]
wont calculate # scores above average
 
ok. im pretty much done with this small program my teacher asked us to write. my problem is: it wont give me how many scores there are above average. it...
[3 replies] Last: Actually, you're declaring average twice... (lines 53 and 62) For y... (by mrHappyPants)
by wtf
What exactly is lstdc++?
 
I need it to sucessfully compile a program cause i'm getting error messages 'cannot find -lstdc++', but I can't find anything about it on the net.
[1 reply] : the c++ runtime library (by jsmith)
strtok_s use
 
Hey there, I've been lurking for a while, and have gained a lot of knowledge...big thanks to everyone! So, I was recently trying to puzzle using strtok_s, a...
[1 reply] : AIEEEEEEEEEEEEEEEEEEEE No! Never, ever, modify the buffer returned ... (by jsmith)
Am I reading file and using map container correctly?
 
int BuildUserPass(std::map<std::wstring, std::wstring>& userpass) { wchar_t tempuser , temppass ; std::wifstream userlistFile(L"userlist.txt"); if ( ...
[7 replies] Last: Thanks both of you. I really appreciate your time and advice =D (by mackabee)
by wtf
How soon into someone's training/career should one learn ASM?
 
Given that it is a very efficient language and requires a fairly broad range of knowledge (more than I have anyway) I was thinking the sooner the better, as it ...
[7 replies] Last: This is quite a nice book to start learning assembly, even though a li... (by jmc)
July 2009 Pages: 1234... 14
  Archived months: [jun2009] [aug2009]

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