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

Reading from specified lines in file in C
 
i want to read text between two indices in the file using file i/o operations in c++. HOw can i do it? for example, here is the text file: 1: .. .. 2: .....
[1 reply] : I guess that you will have to read the file until you get to the line ... (by zoran404)
by azura
just take a look at this problem.
 
I need someone who could help me in this problem. I can't give the detail explanation about the problem but this is the output. Enter number: 1,245 1000=1 ...
[14 replies] Last: I haven't try it but I believe in you guys and don't worry I will anal... (by azura)
array of objects
 
Hi i am green programmer in c++ ,(small expireine in c#) My question is i have Survivor class. In my main i need declare dynamically( new..) 2 arrays each on...
[2 replies] Last: THX (by iliya24)
delete[] gives error
 
the delete statment gives error Error : HEAP CORRUPTION DETECTED: after normal block(#176) at 0x0057B3B0 CRT detect that the application wrote to memory...
[2 replies] Last: Valid indices for an array are 0 to size-1 where size is the number of... (by cire)
The difference between const and non const key
 
So I start thinking about what's the difference between this 2 code map<const int, float> map_data; map<int, float> map_data; But it seems I can'...
[1 reply] : std::map< const int, float > and std::map< int, float > are two di... (by JLBorges)
Beginner C++ programmer, Tic Tac Toe.
 
I'm not sure if i'm on the right track of getting this program to work. I've been writing out different scenarios every possibility. It seems right to me, but i...
[3 replies] Last: All those if and else/if conditions are wrong. For the top row it sho... (by cire)
C or C++ for game development? SFML 2.0 or Allegro 5?
 
Ok, I know C++ is newer, and both are quite fast, but(I don't know how much) C is faster due to less overhead from what I've read on the internet. Speed is a ma...
[7 replies] Last: In a nutshell, i can say that c++ isn't slower than c but some program... (by a k n)
Memory Leak why
 
there is memory leak in this program why and how i'll fix it i think i have to make the base class distructor a virtual distructor class Base { ...
[1 reply] : make the distructor as virtual.. (by kulkarnisr)
by Limne
C++ Linker Problems
 
Can anyone recommend me a site or .pdf where I can learn more about compiling and linking code? All they really taught me in school was C++ syntax and coding st...
[13 replies] Last: > But then, the #include statement in every dependent file would need ... (by ne555)
A weird runtime error
 
Hello. I am having a very bizarre runtime error at a line. I myself couldn't really deduce anything useful about the error. Here is the full source code: http:/...
[2 replies] Last: Yeah its all working sweet and thanks. I am just convinced (when lots ... (by CPlahPlahLearner)
clock like cout statement
 
Hard to explain my issue in the title but, I am trying to understand the clock in terms of c++. A cout statement with endl statement essentially does this 00...
[4 replies] Last: awesome thanks (by kingkong200)
Problem counting the repeated number
 
This function check a set of values from a text file and show it on the output. void MatchNumber(int b){ vector<Rect> rects; ifstream theFile("CheckNu...
[3 replies] Last: ~ bump~ (by aries0152)
Making a text editor
 
Hey guys, I am planning on making a text editor as a side project. I can see right now that it's much more complicated than what I expected. Am I forced t...
[1 reply] : [quote=yelnatz]Am I forced to use Windows programming (win32) here? Y... (by ResidentBiscuit)
sprite animations
 
I want to know because in the game I am making, how can I make the people for my campaign? Like what they would look like?
[3 replies] Last: What's that? (by closed account N36fSL3A)
SFML, why can't I create a connect socket function outside of main?
 
Ideally i would like to use this model but im having difficulty, i spent ages fiddling with the code til I realised that I cannot do it this way, im annoyed tho...
[12 replies] Last: tcpsocket.setblocking(false); -_- (by devonrevenge)
error LNK2019: unresolved external symbol
 
HI I changed my compiler from borland to vs2008 and I am having this error fraction calculator.obj : error LNK2019: unresolved external symbol "void __cdecl s...
[1 reply] : Make sure the declaration and definition of showfrac has the same para... (by Peter87)
Pointer question
 
In the code below. I believe I am returning the memory location of the value I am looking for. How can get the value? main.cpp int choice = 0; PlayerMe...
[5 replies] Last: Actually Disch told you to remove the break, not change its place. If ... (by MatthewRock)
by Snaksa
Binary Tree source
 
Hello! I just want to ask if some of you know good source for learning about Binary Trees. I have found some but they don't explain everything.
[2 replies] Last: Thank you so much. This is what I need. Function and then explanation ... (by Snaksa)
BitWise operator explanation?
 
Ok, so I'm getting into game development, and (despite what I said earlier) I'm using C++. I'm going to be using the amazing and incredible SFML library. I was ...
[4 replies] Last: After a bit of googling, I found this site: http://www.sfml-dev.org/tu... (by Smac89)
How to set the bullet library to GCC
 
Hi, I would like to set the bullet library to GCC. I downloaded source code of bullet but i don't know how to set that. Please help me.
[6 replies] Last: Thanks, I'm gonna try that :) (by Adam1111)
July 2013 Pages: 1... 1920212223... 34
  Archived months: [jun2013] [aug2013]

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