General C++ Programming - October 2010 (Page 22)

File I/O assistance needed
 
I'm starting a little text-based RPG project and need help with FileI/O. i can get the code to write...
[1 reply] : Obligatory link: http://cplusplus.com/forum/articles/28558/ Anywa... (by Disch)
lstat() creates an infinite loop
 
#include <string> #include <iostream> #include <list> #include <sys/stat.h> #include <errno.h> ...
[no replies]
Floating pont comparision
 
//code double det; double psiInv ; det = psiInv * psiInv if(det == 0.0) { s...
[1 reply] : http://docs.sun.com/source/806-3568/ncg_goldberg.html Long story shor... (by R0mai)
copy string
 
Hi, Please go through the code //code snipet #include <string.h> char str = "Welcome" ...
[1 reply] : #include <string> [...] string str="Welcome"; string str2; str2=s... (by Athar)
Unique name
 
namespace OSPos { class calculator { }; }; compiler warning is name of class and namespace...
[no replies]
by saik
Questions on User defined datatype in STL.
 
Please explain what happens when the line vector<EmployeeMaster*> emp; is executed in the program ...
[no replies]
Is there any strange in this case?
 
We usually write arr to get i-th element of array. But when I write i program works, too! Can you ...
[2 replies] Last: Thanks (by mp121209)
by JamesZ
question regarding classes
 
Hey everyone, I am having trouble with a program dealing with Poker hands. I used 2 separate Classes...
[6 replies] Last: Nice, thanks m4ster r0shi, I knew I missed something but just couldn't... (by JamesZ)
Why does the push back of pushback of vector of structs work?
 
So, i have a function like this: void level::wall(int height, int widt, int x, int y, int z) { ...
[2 replies] Last: Oh, ya, i forgot that! cant believe I forgot something so simple! T... (by blueberry)
C++ time project
 
Im having a hard time with this can somebody please help me!!?!! Code and test a class for the ti...
[1 reply] : http://www.cplusplus.com/articles/how_to_ask/ (by Bazzy)
by RichL
Output to Printer
 
I'm new to C++ and can't believe that there's no published way to send output to a printer. This is...
[8 replies] Last: go to: http://www.cplusplus.com/src/ and at the bottom of windo... (by closed account 1wqDSL3A)
DirectX issue, Multiplayer mod.
 
Hey guys. Here's the errors im recieving: 1>CChatwindow.obj : error LNK2001: unresolved ext...
[4 replies] Last: I got it to work, but the game crashes when i create the instance, i i... (by Ravskie)
get date from the internet
 
hey, so im making a program, and i want to make it so the program only works till a sertain date, b...
[16 replies] Last: nvm i finally got it working :D (by mahertamim)
Passing function pointer (error C3867)
 
I am reading values from a file into a single linked list then I'm supose to insert each value into ...
[3 replies] Last: I tried to overload but kept getting very an error. Im afraid im tryin... (by malgron)
Any good books?
 
I'm semi new to C++, and I'm not really getting the tutorials on the web. Are there any other tutori...
[5 replies] Last: I use C++ Primer and it is a very good book. Bought it for $30 online! (by AdventWolf)
how to convert _T() to string and vice versa
 
Hi, I am trying to open a url when users click on the window. ShellExecute(NULL,_T("open"),_T("h...
[6 replies] Last: _T (and, preferably, TEXT) adds an L in front of a string literal, and... (by helios)
?? retrieving data from a .txt file keeps coming back '0' in a class???
 
so i'm making a class that needs to retrieve a data (in this case a name) from a text file and to st...
[no replies]
What is wrong in my C++ program ?
 
#include<iostream> using namespace std; int main() { int a,b,i,n,s=0; cout<<"This prog...
[7 replies] Last: Perhaps he's not finished writing it yet? Here's the cplusplus doc ... (by cnoeval)
Serial terminal setup issues
 
I want to use a fstream to do serial I/O on an RS232 device. I need a File Descriptor and File poin...
[no replies]
by LB
Static Members - Easier Way?
 
I was wondering if there was a better way for a static member function to access each an every class...
[3 replies] Last: Does a set help? struct Staticlass { int Int; private: sta... (by moorecm)
October 2010 Pages: 1... 20212223
  Archived months: [sep2010] [nov2010]

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