Woo! It works!
Thank you much.
Type: Posts; User: beanroaster
Woo! It works!
Thank you much.
Here is part of the compile log. I just sorta cut it off at a random place.
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documents and Settings\Adam\Desktop\Creature...
Well this is the code I'm using to test it:
#include <iostream>
int main()
{
std::cout << "Hello World!";
return 0;
}
Nothing too terribly fancy here ;).
Hi,
My compiler (Dev C++) spits out about 500 errors followed by "There must be something terribly wrong with your code. Please fix it." when I try to compile anything. Even one of the sample...
Well, I don't know what happened, but when I tried it again this morning, it works! Thanks for the help.
So would it work if I put a different make.exe in the same folder, or is it specific to Dev-C++?
Hi,
I'm trying to build a file in Dev-C++ and when I try to compile, I get this in the log:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Adam\Desktop\C++\Beginning...
Haha, it works!
Thanks for all the help and sorry for being such a noob.
Its still giving me the same error messages.
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <ctime>
using std::endl;
using std::string;
//***WRITES*FILES*********
void write(string filename, string text)
Ok, now for line 12 its giving me error no
Its also giving me some new errors in iosfwd and fstream when I used std:: ostream.
No, I have fstream
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
using std::endl;
using std::string;
Hello,
I am trying to make a function where I can input a filename and a string for insertion into a file.
void write(string filename, string text)
{
ofstream file;
...
Yeah, I'm on Windows XP, but is there any way that I can add it to the startup group with C++ code from the program?
Hello,
How can I set the computer to launch a program when it starts up?
Thanks,
Hello, does anybody know how I would go about making a word unscrabler?
Like the user inputs "gorf" and the computer spits out all possible combinations like
g
o
r
f
gg
go
gr
gf
Guess is assigned by the other player's last guess. That's why it's so screwed up.
Hello, my AI is not going so great. I can make the computer make a good first guess but then the guesses are way off. Is there anyway I could make a record of all the guesses, find the middle two,...
Teach yourself C++ in 21 days is pretty good and could fill alot more than 21 days. I haven't seen some things that I might have wanted in the book yet, but I will keep looking.
What is Adrianxw's tutorial? And how do I kill this thread?
Alright, I'll get on that.
Thanks,
I know what you mean. I usually hide the source code and only show the user the program. I make the code look really big and complicated when I'm trying to get a friend to start on C++ from HTML.
I actually am not coming from C. I have been programming C++ for about a month and a half now. I have never tried the string class as I have never seen the need to since there is char.
Thats what I did the first few days of my C++ programming and all of those colons got really annoying once I started making bigger things.
What if the reason is this? Besides, I use this way for all my code and I don't think that I have advanced specific reasons.