General C++ Programming - May 2012 (Page 21)

void return statement
 
is this good programming practice to use return as such: void foobar(int n) { if ( n > 99 ) { cout << "What's up, you?" << endl; return; ...
[7 replies] Last: This is valid code void foobar(int n) { if ( n > 99 ) { ... (by vlad from moscow)
how to embed a windows in C++
 
how to embed a windows in C++? im trying to make a cheat engine and thought of embedding the main window inside the main window, help here.. no comments on wha...
[1 reply] : This depends on your operating system and your chosen graphical toolki... (by Moschops)
Ideas for C++ projects
 
I am a BS EE student and I have to make a C++ project. I am in my second semester. I am familiar with the use of loops, conditional statements, and a little bit...
[15 replies] Last: Thanks @stewbond. But what if I want to get the second or third line ... (by szak1592)
Specializing Inherited template methods
 
Hello everibody, I'm new here and I don't know if this topic has already been discussed, but I've been googling it and found nothing, so here I am. So, I have...
[3 replies] Last: Ok, thank you guys for your answers, I found that rollie's solution do... (by xbill82)
by foivos
Fastest possible vector linear superposition?
 
Dear friends, I would please like your help for the following problem: I need to have the fastest possible addition of vectors in order to speed up my code....
[1 reply] : Hi! I found Blitz++ and uBLAS (boost library) that have very efficie... (by foivos)
Compiler question
 
With the following code I get an error in bloodshed that I do not get in visual studio. specifically this line : infile.open (inputFileName); Bloodshed won't...
[3 replies] Last: infile.open(inputFileName); is available only in current C++. inf... (by JLBorges)
by mk532
generate data set form members of different arrays or vectors
 
Dear Friends, I am a newcomer of C++ programming, I have a problem: I have 9 sets of numbers that each of them include different numbers for example: set 1: 10 ...
[12 replies] Last: Thanks a lot JLBorges, I am working to drive through these result by m... (by mk532)
C/C++ APIs
 
I would like everybody to list APIs worth learning like OpenGL, ZLIB, SQLite, cURL, etc. So I can see them and learn them.
[1 reply] : Learn them as you use them. You should consider creating some softwar... (by kbw)
working with visual studios help.
 
My code is not recognizing cout and endl; Oh and my random numbers keep coming in as 1 or 0. Note sure why? Any help would be greatly appreciated. #includ...
[3 replies] Last: Not sure why that is, I used your code for poisson distribution and it... (by slicedpan)
by Flurr
Creating functions for Sorting, Edit data
 
For the Sorting I can't figure out how to return the Employee Numbers and Sort them in order. this is based off of user input data. I need to sort it either fro...
[no replies]
Terminate C++ program by user input
 
Hi, I have written an exe that could run for hours. I want to add feature that if a user wants to terminate the program in a few minutes instead of waiting f...
[3 replies] Last: See http://www.yolinux.com/TUTORIALS/C++Signals.html for examples on h... (by naraku9333)
creating a level editor
 
Hi. I'm trying to create a level editor for a game I'm building. The program runs fine when it just displays the grid and potential objects, but I can't figure ...
[3 replies] Last: I figured it out. I created a void pointer called map and passed it ar... (by dirtyd33)
Questions about programming
 
Hello, everyone! Just a quick question: When programming an RPG, is it easier to make a text-based one or a graphical (2D) one once you understand what is to b...
[2 replies] Last: Okay, thanks! (by Exispistis)
pointers in struct
 
for a struct(structure data structure) that has a pointer member, why do we have to declare an instance of our struct as a pointer as in: struct node { int d...
[7 replies] Last: That's a lot of options, clanmjc and i'm going to absorb it slowly, an... (by closed account 4ET0pfjN)
Program compiles but does not run
 
Hi guys, i have program which implements the longest common subsequence algorithm. But from some reason, it is impossible to run. I am using Win7 and Dev-C++. I...
[5 replies] Last: Shit, of course I forgot to include argumetns :/ thanks a lot guys, no... (by janybily)
C++ program using visual c++. Functions, call and ref statements with for loops, output two separate tabless?
 
Need a little help please: i have been trying to complete this for a couple days but i get more and more confused everytime i try. When an object is falling...
[4 replies] Last: now im just trying to figure out the ref value....when i switch parame... (by eortiz10)
Assistance writing code for a crossword type solver
 
I am attempting to create a program that can be used to show possible solutions to a puzzle. My description may need some further explanation, but I'm going to ...
[no replies]
Getting precise system time
 
I need to get a system time as precise as possible, the time(); function returns the seconds only, could I get something more precise, maybe a function that ret...
[5 replies] Last: Thanks, that's going to do the trick! (by tofiffe)
cout and ofstream
 
Just to be clear, from what I've tested, if I'm right, ofstream inherits from ostream, and cout is an ostream? And polymorphic behaviour occurs here with the ...
[1 reply] : ofstream inherits from ostream yes and cout is an ostream Yes... (by Cubbi)
Renaming Multiple Files
 
Hi all. I have thousands of files that need to be renamed. What I have is a folder full of files (named sequentially) and then a .txt file with the desired na...
[11 replies] Last: I'm sure I speak for kbw on this - Thanks for the kind words! Happy y... (by kooth)
May 2012 Pages: 1... 1920212223... 41
  Archived months: [apr2012] [jun2012]

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