General C++ Programming - February 2008 (Page 4)

My programs closes after its execution...
 
I write a program, and it closes itself after its execution. I use the "cin.get();", the program should expect the user to type a key, but it doesn't works. ...
[5 replies] Last: Here is a good way to pause in C++: cin.clear(); // Ensure erro... (by dirk)
by hazda
Problems running snake game
 
Hello Y'all, i got a snake game source code on the internet and im having problems compiling it using Dev C++ and Code::blocks. I dont know whats wrong with the...
[1 reply] : This program is a piece of junk. Also, it uses old dos type functions... (by dirk)
by Salu
graph using C++
 
How to create nodes in a graph. Plz write the code
[2 replies] Last: <code>#ifndef GRAPH_H_ #define GRAPH_H_ /* * This file has declar... (by pratyush)
CVSNT Module
 
Hi, I'm trying to do a CVS module of a folder. But I get this error: In C:\DOCUME~1\LUISCR~1\LOCALS~1\Temp\TortoiseCVS make new module temp\: "C:\Program ...
[no replies]
by amrcn
program help
 
Hello there, I posted this in the beginner's section and received no response, so I figure the general board might know. Anyways, I'm writing a program to...
[6 replies] Last: The use of pointers will greatly increase the memory efficiency of you... (by cobraun85)
establish internet connection with c++
 
Hello that's my first post here I hope I'll be succesfull. I'm trying to create a program which establiches an internet connection I mean it tries to access...
[1 reply] : You need to study up on something called sockets. This site, http://w... (by head code)
seekg
 
I am trying to read data from a file one line at a time. The file was originally written by this same program using \n to separate data. It seems I should use s...
[4 replies] Last: I see your point about each line being a string. I'm embarrased I didn... (by cobraun85)
Are several overloaded operator[] possible?
 
Hi I've created a class with a single vector as a private member, and overloaded operator to get/set the nth vector element at ... no problem. I now hav...
[2 replies] Last: Yes, it is possible, but it is usually not worth the trouble and/or a ... (by Duthomhas)
HELP!!!
 
I have a problem with my program and i cant seem to fix it could some one help me out Hears My Program: #include<iostream> using namespace std; int...
[4 replies] Last: yeah it still dosent work but i found a diffrent way to do it #incl... (by gregv21)
Initialization of ifstream and ofstream
 
I have a code that reads in various texts files one by one to do some operation on them. Files have similar names differing by a number at the end. I define inp...
[6 replies] Last: Thanks a lot DimitriuS. Even we're unable to find a plausible reason f... (by Morphius)
by zprise
what's the difference
 
Hello! in a case where int a=5; if((!a)++) or (++(!a)) gives me an error message saying that the operator ++ requires l-value, but the boolian result of if (!...
[11 replies] Last: Thankyou Mr.dolorx, Thankyou very much for your explanation regarding ... (by S J K)
C Programming Tutorial for the starters
 
Dear All, I have tried to create a c programming tutorial for the starters: http://howtoprogramc.googlepages.com Do give me suggestions to improve it. ...
[no replies]
Pointers to objects
 
Hello, In this program I am to use pointers and dynamic arrays when creating objects. I can't use subscripts....my professor won't make it that easy. #...
[3 replies] Last: There is problem with the OPERANTS PRIORITY. There is no problem wi... (by DimitriuS)
Need Help in C++
 
Declare a class name “Polynomial” which contains an array of size (n) (dynamic allocation of this array is not required, you can use a global variable to re...
[no replies]
graphics programming How to?
 
Hi :) How is graphics programming done is C++? I read from some articles that OpenGL is a way but I want to know if there is another way by which its easier and...
[3 replies] Last: Thanks bro! By the way so you know of a site that offers a tutorial... (by jdstufu)
private member variable - copy constrector
 
can we access private member variable of one call in another class by using copy constrector??
[no replies]
C++ Polynomial Class
 
In this program class name “Polynomial” which contains an array of size (n) not dynamic allocation, Degree of polynomial may be in a global variable, to s...
[no replies]
by g0dwyn
Creating Predicates
 
I had this in the beginner's section but that might not be the right place for it. Here goes: I'd like to be able to create boolean predicates. Not a boolea...
[no replies]
about C++ screen saver
 
can someone give me a program that will make a screen saver? just a simple one. example a ball,circle, or any shape or thing bouncing all over the screen or a...
[no replies]
by samar
Comapring string in Switch case
 
Hi all, Is there any way by which we can compare strings using switch-case method? Or will we have to use only if-else? The following code gives error & whic...
[1 reply] : you are completely wrong my friend!!Switch case has nothing to do with... (by DimitriuS)
February 2008 Pages: 12345
  Archived months: [jan2008] [mar2008]

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