General C++ Programming - July 2013 (Page 11)

best way to write a function returning 2 value
 
So I have a function like the one below bool get_array( float input_param, vector<int>& output_param ){ // some code that handles output_param output if...
[7 replies] Last: Breaking it into 2 function is rather a waste of overhead in many case... (by rmxhaha)
static_cast Confusion
 
Greetings, I can not seem to get my brain wrapped around static_cast. Can you help me understand what is wrong in ANY of my following three examples: class...
[1 reply] : That doesn't compile. But if the pseudocode in the beginning is any in... (by Cubbi)
Recursion
 
Im trying to upload a directory and all the files in it to a server using wininet. here is my code BOOL CListfilesDlg::recursion(CString sPath) // ...
[no replies]
Logically illogical
 
I am making a program to read bowlers names & scores from a txt file, and then print them out as a table like: name score score score ...
[1 reply] : A couple of errors in your code: for(scrcnt = 0, scrcnt!=3,scrcnt... (by AbstractionAnon)
Help please, and quickly if possible.
 
So I created my menu, and menu items like this case WM_CREATE: { Sleep(1000); AppendMenu(Men1,MF_POPUP, (UINT_PTR)Option...
[2 replies] Last: I figured it out, I know the resource way I was wanting to learn the o... (by Johnny111111111)
Finding files in a given folder
 
Hello, I am new to this forum. I think I put this in the right section of the forum, but I am not sure. I had wanted to make a program that will tell someon...
[1 reply] : This one is too easy: - WIN32_FIND_DATA: http://msdn.microsoft.com/en-... (by Computergeek01)
how do I turn the string integer into an array
 
int main () { string integer1; string integer2; cout <<" enter your first number: " << endl; cin >> integer1; cout << endl; cout << integer1 << ...
[5 replies] Last: class std::string has member function size() (by vlad from moscow)
by Snaksa
Books about algorithms
 
Hi! I want to ask you if you can recommend me a good book about algorithms that will help to improve my logically thinking and will teach me on advanced program...
[no replies]
corner estimation
 
Hi I hope some people good at maths here so maybe they can solve it. lets say I am shown a square with four corners and each corner is given a coordinate ...
[17 replies] Last: i got an idea something similar to what disch i will capture the corne... (by asda333)
projectPoints opencv
 
Hi does any one know how to use it a function for 3d reconstruction. I followed the manual on the website but it seems to give me error. assertion failed...
[2 replies] Last: exactly, it crashes at that point when i step through it. the main rea... (by asda333)
Close to giving up
 
I've come to cplusplus mostly because I'm in school for software developement, and I wanted to do a project on my own, so I installed the SDL API into Visual St...
[2 replies] Last: weird, I was intitially using codeblocks and had the same problem, but... (by sgant869)
Game programming librarys, engines
 
hi guys I want to start with game programming and I don't know what library to use. can someone please tell me what is the best library for developing 2d games...
[10 replies] Last: If you're using those libraries just to make your window, and do keybo... (by htirwin)
best way to make a class out of this?
 
so i am making a game in sdl, and while it works, i feel like i wrote it horribly. its based off lazy foos tutorial, although a lot of it is my own code. could ...
[6 replies] Last: ? lazy foo also teaches 2.0. I just linked to it. sorry i thought it... (by closed account Dy7SLyTq)
Tic Tac Toe Assignment
 
Im in a c++ class in college and need some help with this code. I did the assignment based off what i have learned in the class so far and obviously need to do ...
[no replies]
GOOD DAY GUYS.
 
I'm a college student currently taking up computer engineering. I'm in my third year and I'm struggling with my subject Data Structure and Algorithm Analysis, w...
[3 replies] Last: Here is a nice tutorial see if it helps getting you started. http:/... (by kalicha)
Help in void pointers
 
In the tutorial about pointers i didnt understand the code for void pointers what is pchar=(char*)data doing? can you explain me? / increaser #include ...
[3 replies] Last: The part to the right of the assignment operator, (char*)data , is ca... (by Computergeek01)
STRTOK and NULL
 
Hello, I am beginner in C++ programming. And i was try use STRTOK code with NULL fields, but in ARRAY fields NULL values is skiped. For example: input text ...
[2 replies] Last: Thanks for your answer. I was download BOOST headers, but in "mutable_... (by karelPrague)
by mhesam
compiling error
 
Hi,what is mean of these messages when i compiling ? thanks. http://s15.postimg.org/cdfsdcyej/Capture11.png
[1 reply] : you need to run the program as admin (by closed account Dy7SLyTq)
Games in C++ (openGL) ?
 
okay i have just moved on from java after about two years of programming in it and i want to know the best path to go down for game development. i have been mes...
[5 replies] Last: thanks cire :) i think i might stick to free-glut then, seems like the... (by DanielJamesCollier)
Don't know how to make a sertain key do something specific
 
So I want to make a program that asks for a password and if you get it wrong it loops but there is no right password you have to press a key like F5 or some key...
[3 replies] Last: @Vincent Dominguez Well, what have you written in code, so far? We do... (by whitenite1)
July 2013 Pages: 1... 910111213... 34
  Archived months: [jun2013] [aug2013]

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