|
try MSDN though i don't think they'll have alot of info on it.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
LOL hell ya go to http://www.msdn.microsoft.com/library/default.asp[^] and then you see the tree control?, go to graphics and multimedia and expand that then find Open GL. OMG I didn't know microsoft had this much ... stuff ... about Open GL!!!!! ;)
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
Yes I want to go back but there is a reason. I need a website dedicated to old c++
not like alot of other things can anyone suggest any websites?
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
What do you need to know ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I need to know how to use c++ file i/o very well especially the file input to the program.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
Then read my articles on iostreams and ask any questions you like.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
how would i be able to open a file and see what the first variable or character is and if so then do this otherwise do that??
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
A char is one character, so read in a char.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
lol I guess you have something like msn messenger cause you reply so fast. back again, though, im totally new to file reading and would like to maybe get some more help, sry, maybe an example or how to do it?
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
*sigh& Thats why I said to read my articles.....
#include <iostream>
#include <fstream>
using std:ifstream
ifstream myStream("c:\\stream.txt");
char c;
myStream >> c;
if (c == ' ')
std::cout << "You typed a space";
else
std::cout << "You didn't type a space, sucka";
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
ill email you back because i think i need to do this in a different way but thanks for your time.;P;);P;);P;);P;);P;);P;);P;)
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
*sigh& Thats why I said to read my articles.....
#include <iostream>
#include <fstream>
using std:ifstream
ifstream myStream("c:\\stream.txt");
char c;
myStream >> c;
if (c == ' ')
std::cout << "You typed a space";
else
std::cout << "You didn't type a space, sucka";
Christian
lol!
todo....
:: insert inspirational text here ::
|
|
|
|
|
DAMN!
#include <string>
using namespace std;
#include <windows.h>
#include "ou_thread.h"
using namespace openutils;
I'm using the ou_thread class, or trying to and I keep getting the error that there is an unexpected end of file while looking for a precompiled header directive. Bah..
|
|
|
|
|
If you're using precompiled headers, every file has to begin with:
#include "stdafx.h"
That assumes you didn't change your precompiled header file in your project options. If you don't want precompiled headers, disable that in your project.
Also, why do you have #include lines with no file after them?
|
|
|
|
|
Note that you can disable precompiled header use on an individual file basis.
Joel
VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]
|
|
|
|
|
Kentamanos wrote:
Also, why do you have #include lines with no file after them?
The CP parser strips them out thinking they are HTML because they start with the <
|
|
|
|
|
#include <string> is there, it's just not being displayed!
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
using namespace std AND namespace openutils is asking for trouble. Can you guarentee that neither of these namespaces will be extended to include something already named in the other ?
You should only #include the bits of a namespace that you are using.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I changed the settings in my project. Blarg. Let's see what other roadblocks I can encounter. This project is due tomorrow by midnight and I am SO TOAST on it.
Thanks dudes!
|
|
|
|
|
This racing game, the worst racing games I have ever played. If you want to make a racing game you should make it good. I meen come on, you blow up when you barely touch the edge of the track. You must be thinking like this guy.
KAI_YPO/PUNA
|
|
|
|
|
What does this have to do with VC++, or C++?
This forum is for questions, or 'request for assistance' on those subjects.
William
Fortes in fide et opere!
|
|
|
|
|
Look - it's the world's stupidest person.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
ypo_cnihtmarcher wrote:
This racing game, the worst racing games I have ever played. If you want to make a racing game you should make it good. I meen come on, you blow up when you barely touch the edge of the track. You must be thinking like this guy.
relax homo, why dont you just go make your own than.
todo....
:: insert inspirational text here ::
|
|
|
|
|
I think the invasion game was very addicting, but needed more item and levels to really keep someone entertained for more than a little while.;P Also the game didn't have enough weapons to be cool.
KAI_YPO
|
|
|
|
|
Ok, and??
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|