General C++ Programming - February 2010 (Page 2)

Stack Vs Heap
 
Quick question: Whats the difference between the stack and heap, I'm still learning memory management...So I don't really know ^^ A link to an article would suf...
[3 replies] Last: thanks guys :D (by Seraphimsan)
Problems with a pointer
 
Hello, i got a problem with a pointer and i can't find it< Its a little program to store some number(an assignement) This is my .H #pragma once con...
[2 replies] Last: Damn thx, stupid mistake (by vincent90)
by anya
c box
 
i m trying to make a graphic image it is like inside a square a + sighn. it looks like window with 4 panes. how to insert the middle line vertically and the ...
[3 replies] Last: @anya: Well first I would like to tell you that I don't know the c+... (by Amer)
EVERYONE'S QUESTIONS GET ANSWERED BUT MINE. THATS COOL. NOT!!!!!!
 
ASDFASFBHEFNBTNEQNWETNETWNTN
[4 replies] Last: It is also very common for the questions posted to be unclear or missi... (by moorecm)
Unable to pass object into function of another object?
 
Hi all, I am trying to pass this object into a function of another class: Moviemanager class: void MovieManager::addNewMovie(std::string url) { MovieR...
[6 replies] Last: Thanks to everyone for your kind help. Really learnt loads. Sorry I... (by zizou86)
reading ints from text file one char at a time into array?
 
Hello. This is my first post here. I am having a little trouble with my C++ program (using Dev-C++). The program is supposed to read in a line from a text fi...
[4 replies] Last: Just in case anyone else would like to know, here is what I was suppos... (by MyrtleTurtle)
Data file of integers converted to Data file of integers without commas
 
Write a program that reads a file that only contains integers, but some of the integers have embedded commas, as in 145,020. The program should copy the informa...
[1 reply] : Hi tomgreiner, the problem is in the main loop: while(!fin.eof(... (by TheBear)
thread
 
Hello. What are threads? thanks.
[2 replies] Last: thank you a lot. (by majidkamali1370)
Looking for design clarification.
 
In my program I have a class (M) that is needed by very basic parts of a system - I only need one instance of M. Other systems may need to have access to M a...
[8 replies] Last: I'm just wondering for this specific case, with a project of some c... (by jsmith)
[Solved]Too much memory used?
 
Hi cpp-Community, until yet I got every problem solved with just reading posts, but now I can't find any user that had the same problem and I hope you can help...
[8 replies] Last: Oh my god!!! You're right! Thank you very much! phurivdli is the f... (by Schalla)
array functions program; id returned 1 exit status
 
I've been working on this program that is supposed to do several different functions but in trying to work out some of the problems it no longer compiles/ runs....
[2 replies] Last: Modified the code .. // Testdoubfile.cpp : Defines the entry poi... (by bluecoder)
data file conversion
 
Generate a data file to test all the features of the following program. Then write a program that reads a file that only contains integers, but some of the inte...
[1 reply] : FYI, you don't need _tmain() in there. You are on the right track. ... (by firedraco)
Multidimensional string problem
 
I have a switch... In case 1 and 2 the multidimensional array of string works fine But when it do the case 3, the string value in stringWeight was erased. ...
[3 replies] Last: Oops sorry. actually it is not my code.. BTW thanks Disch for the he... (by olredixsis)
by dcfjoe
Stumped With Objects
 
The entire programming exercise is supposed to find the distance between two points in 3D space. Every file that is included is necessary per instructor guideli...
[5 replies] Last: THANK YOU THANK YOU THANK YOU I cannot believe that I missed that #... (by dcfjoe)
Babylonian Algorithm
 
Hello everyone. So I recently registered for a math class that is teaching C++ programming. Well, the basics of C++ anyways. I'm not on here for any answers, ju...
[8 replies] Last: After writing out that program, I got 100 on my program but my teacher... (by kkuelor)
Function String
 
yas
[8 replies] Last: Uh bluecoder, why did you post the answer? You don't do that on this f... (by tummychow)
by Zemalf
Move a file??? RUn a file with c++
 
How do I RUN a file or MOVE a file or CREATE a file to a CERTAIN location??? Like I know how to create a text or something but it saves it in the folder of V...
[1 reply] : You'd probably need to look into a specialized library to do that with... (by tummychow)
Throwing an exception
 
I was just curious, when you throw an exception is a message box supposed to pop telling you there was a problem and give you the option to abort or continue ru...
[9 replies] Last: Ah, I think you solved my problem...Thank you! (by kyleg033)
Somewhere in this code is an error, Console closes like a segfault.
 
I cannot find the bug that is residing in this code, I've narrowed it down a lot. This function resides in my main program: int draw_world(){ mvp...
[2 replies] Last: It simply closes, everytime I've seen this error on a unix box, the cl... (by rstr5105)
File I/0 copying all of file
 
Hi Guys Sorry for asking for help, but I have an issue. I am copying a file into different vectors dependent on the type of variable it is e.g int,string,...
[2 replies] Last: Just looked up substring, should be able to do it, thank you :) (by iamthefear)
February 2010 Pages: 1234... 21
  Archived months: [jan2010] [mar2010]

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