General C++ Programming - December 2012 (Page 42)

End of File(EOF)
 
Hi, I want to use eof() function to stop reading datas from a file when it reaches to end of data. I...
[10 replies] Last: By the way, I said earlier I need to use eof. I used already in while ... (by genclik27)
Program is not breaking out of loop. Please help
 
Hi everyone. I'm working on a program but I'm stuck on this one part that I cannot figure out. In th...
[5 replies] Last: So I got rid of the break with 0 is entered that was on line 58. Every... (by ovaltine99)
by bleaz
Programming Program
 
What is all of your preferred programming programs? I use Dev C++ anyone else have any?
[1 reply] : This belongs more in the lounge. Also, http://cplusplus.com/articles/3... (by hamsterman)
Searching for efficient code
 
Hello everyone, In order to do some simulations, I create a class containing vectors, then a vector...
[10 replies] Last: Yes. I think your code get the same results as mine. but yours is shor... (by dekeenfrance)
Arrays and Inheritance
 
My question probably has a simple answer but I am not 100% sure on the syntax of replicating the fol...
[1 reply] : To get your code to work, you could use Animal* animal_array ; Pra... (by Cubbi)
Filling array with unique numbers?
 
This is just a piece of the code. How can I make this not use the same number repeated times? The co...
[14 replies] Last: @cire Now I see! THANKS mister! I finally understand! :D (by AnEvilVegetable)
hey- programming help! (I have most of it)
 
These are my instructions: (I do realize that this has been posted on this site before but my teach...
[no replies]
OpenGL Voxel Engine
 
So I have been making a voxel engine using sfml and the opengl that comes with it. Now what I have b...
[6 replies] Last: Yeah, I just figured that out, and was writing a post to say never min... (by Pickle Gunner)
Format to access a class function pointer which is a member of a struct
 
Below is my struct declaration where ticket_booking is my class. struct MENUITEM { enum ...
[1 reply] : Read this: http://www.parashift.com/c++-faq/pointers-to-members.html ... (by vince1027)
by Hucaru
SFML Window title
 
Hey, I have managed to get a window open using SFML. However when I set the title of the window it i...
[2 replies] Last: Thanks that worked. Had no idea that there was much of a difference be... (by Hucaru)
by ekolet
How to open a file from a spesific directory
 
First I want to open a text file and save some data in it. 1)ofstream out; out.open("C:\\output1...
[13 replies] Last: I think ShellExecute() could be much better choice if you want to exec... (by modoran)
by Untrue
Sorting characters in an ADT List
 
If the given list is 'a' 'c' 'd' 'e' then the user inputs 'b' @ position 3 (assume position-1) then ...
[1 reply] : God I need to sleep. You also need to improve your otherwise atroci... (by Catfish3)
Problem in my programme
 
Well, so I'm writing a program that will 'interrogate' words (pardon my imperfect English) for schoo...
[1 reply] : There's really not enough here to see a problem. Can you post complet... (by AbstractionAnon)
by Ali93
Error in Copy Constructor(stack)
 
HI This is a Copy Constructor function, using stack when i run this function,(other functions ru...
[1 reply] : At line 9 of the copy constructor, you're going beyond the bounds of t... (by AbstractionAnon)
by Copy
Any recommendations?
 
Well, I just finished "Basics of C++" and it was a five lesson tutorial ( one of many), and I was wo...
[2 replies] Last: I used jumping into c++, it teaches you a concept, then shows you how ... (by Pickle Gunner)
public inheritance and mixin style
 
I read Scott Meyers Effective C++ book and I cant understand why did he use public inheritance in ...
[no replies]
Passing one row from a multidimensional array into a function .
 
So I have a multidimensional array like this , N is any integer value double arrayDistances [N+...
[2 replies] Last: Thanks, I figured this way out , double largestFromEach ; f... (by nishantve1)
Developing FIFO queue, need something better than time(NULL)
 
So per the title, I'm developing a FIFO queue (well more also but I just found the problem), and I'v...
[7 replies] Last: Or simply clock() for c++98 By the way, time() and clock() meas... (by ne555)
STL issues.. (again)..
 
I don't understand .. why do I keep getting vector subscript errors even after using vector::clear(...
[no replies]
Need help Getting Map to center around character.
 
//yes i know system commands are evil, and i only used it for the sake of showing //my code on the ...
[18 replies] Last: Thanks for the help, it worked perfectly :) (by brandonator)
December 2012 Pages: 1... 40414243
  Archived months: [nov2012] [jan2013]

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