• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

my compiler doesn't understand string, need new compiler

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Is english not your first language or do you just not pay attention Chooco?

From the DevC++ web page (emphasis mine): Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler.
 
i have that GCC compiler piece of crap on CD, it came with my C++ for dummies book and it doesn't work. try to compile without using the text editor, i bet you can't do it.
 
That GCC piece of crap, as you put it, is what DevC++ uses. All DevC++ gives you is a nice notepad to type into, when you hit compile it saves the file and runs 'g++ file' for you, catches the output and displays it so you can fix any errors. You can do all this in notepad and a cmd window on Windows or vi and a shell on Linux.

And, bet I can...

vi test.cpp
hostname:~# g++ test.cpp
hostname:~# ./a.out
Hello World
 
What kind of monkey are you?!? The GNU compiler is one of the best compilers around and it DOES work, just because you can't figure out how to make it work doesn't mean a darn thing, it just proves your ignorance. Use either a character array for a string or use the import directive to import its header file, its not that difficult. Ever heard of a little thing called linux, yeah they used the GNU compiler to make that and most if not all of the programs available for the system. Just read the documents, the IDE is NOT the compiler no matter how much you think it is. And yes you can use the command line for the GNU compiler, you just have to know how
 
it doesn't work because the instructions DO NOT WORK.
-create a direcotry C:/DJGPP
-copy the complete set of C++ zip files into /DJGPP
-unzip all the files in the folder itself
-add the following commands to your autoexec.bat:
set PATH=C:\DJGPP\BIN;%PATH%
set DJGPP=C:\DJGPP\DJGPP.ENV
-reboot puter

-execute C:\djgpp\bin\gcc to compile

wow, it's a good thing i have my daily dose of fatal errors
"Environment variable set incorrectly"
yeah right........
 
Are you using Win9X? If not those set commands in your autoexec.bat won't do anything.

And just because you can't set it up doesn't mean it's a POS, put forth some effort, geez.
 
Originally posted by: Chooco
i have that GCC compiler piece of crap on CD, it came with my C++ for dummies book and it doesn't work. try to compile without using the text editor, i bet you can't do it.

At least you got the right C++ book.

 
Originally posted by: Nothinman
Are you using Win9X? If not those set commands in your autoexec.bat won't do anything.

And just because you can't set it up doesn't mean it's a POS, put forth some effort, geez.

Win98SE, i can't put any effort in because those are the only instructions.

yep, the book is a good all around referance because of the charts and stuff. 🙂

 
Why does it matter what language something is done in? I've seen web forums like this done in Cold Fusion, PHP, ASP, PERL... applications are language independent... the language you choose to use is just a tool...

Methinks that C/C++ is a little too low level for you right now.
 
Win98SE, i can't put any effort in because those are the only instructions.

If following written instructions is the extent of your deduction skills, maybe computers aren't your thing.
 
um no, C++ is the biggy, i gotta know it.

btw, what is VB for? like can you name any programs that use VB? or Delphi?
 
Chooco - Please give me a good reason why C++ is the only language you should know? If you ever write tools for companies then you will use a lot of Delphi and VB.
 
Come on guys, give Chooco some slack, he is a pretty funny guy, you'll have to admit that 🙂

Don't give up Chooco, but you shouldn't blame compilers and editors if something doesn't work. Espescially if you're using compilers such as GNU which a hell of a lot of programmers use.

I agree however you should start programming with Visual Basic instead of jumping directly into C++. VB is good for small Windows apps and easy to use and learn. There are lots of applications to VB, and it certainly isn't "no name". And when you get to C++, get a better book than this for dummy ones.

BuckleDownBen, ROTFL!!!!! 😀
 
ElDonAntonio - If you want a good laugh, then check out his thread in Networking, about the great Linksys boycott 😉
 
just read the whole thread, I have to say everything's pretty much confused, rather than funny (I find THIS thread much more funny!!)

However I can understand Chooco with his Linksys trouble, if he bought his router from Future Shop, he may very well have gotten a lemon (FS = really crappy canadian superstore). Furthermore, I have mixed opinions about Linksys, I bought a Linksys wireless adapter, and they got their firmware right only recently (the product is available since about 2 years I think). It had some serious slowdown problems (topping at around 20K/sec) every week or so and users were pretty pissed off on networking forums. I'm pretty happy with it now that's it working ok.

BTW, Chooco, do you live in Montreal? (just curious)
 
LOL @ Antonio, my English is so bad you think that English is my second language lol...... no man i'm in Alberta.
-FutureShop is an American company actualy (like every other company in Canada)
-DevC++ doesn't give me problemos
-a lot of forums think i'm funny for all the stupid things i say 🙁, go to the Admin Mod forum and ask about "Halogen" and they will say "oh that confused guy who was always wrong, yeah i know him"

which are the big languages i should learn? right now i'm on track for C++ and PHP, i already got HTML (which is really basic). i'm thinkin Perl next but i still gotta read the rest of my $200 worth of books......:Q
 
I agree however you should start programming with Visual Basic instead of jumping directly into C++

VB is a bad language to start out on, it'll get you into some bad programming practices.

Something easy and OOP like Python or Java would be a better choice, or maybe even straight C and learn the OOP stuff after he has a grasp on functional programming.

which are the big languages i should learn? right now i'm on track for C++ and PHP, i already got HTML (which is really basic). i'm thinkin Perl next but i still gotta read the rest of my $200 worth of books......

Perl is also a bad choice, it's so flexible and variable in syntax it'll confuse you even more. Perl is great for little (and even big things, I used a GTK email client written in Perl for a while) scripts that do a lot of text processing and the mass of available modules is cool as hell, but starting out on it will get you into some very bad habits just like VB.

But whatever you choicer, choose 1 and stick with it, spreading yourself thin when you're already confused will only make things worse.

Also learn how to ask questions and RTFM, it's blatantly obvious you've done very little research on your own. Coming to a forum and saying "My sh!itty compiler doesn't know strings, give me another one!" gets a much harsher reaction than "I can't get strings to work in my C++ program, any advice?", as you've probably noticed.
 
Chooco, whow, didn't know Future Shop was an american company, that explains a lot of things 😉

My apologies by the way, I didn't mean you were asking idiotic questions, I meant that you were funny because the way you ask things is rather unusual 🙂 (just as Nothinman pointed out). No harm in that, on the contrary it makes a forum much more lively!! and no harm in being a beginner programmer, every programmer's been there. People that make fun of you now might end up working for you 🙂

I'm not sure if I agree with Nothinman when he says that VB is a bad start. I started out with VB, and for getting my feet wet, I thought it was excellent. I agree it's not as rigourous programming than C++, but you get a general idea of what's programming and it's motivating because you see concrete results of your work (a nice windows app that actually does some useful stuff). Unless you start right away doing MFCs (which is extremely unlikely), I guess your C++ projects will be rather boring console apps (not to say the logic behind them is boring, but the end result just isn't that impressive).

So my advice would be to start with Visual Basic, have some fun with it, but keep in mind it's not a very efficient or rigourous programming language. Most VB books will still try to get you to use some strict syntax and programming rules, I recommend you follow this. When you're able to do some interesting things with VB, move on to C, learn the syntax, then start exploring object-oriented programming (OOP) and you'll be doing great C++ apps in no time.
How old are you btw? are you planning on taking some computer science/engineering classes or are you planning on learning to program all by yourself?
 
a few things:
-that GNU compiler thing that is on the CD that came with that book DOES NOT WORK and there's no more instructions than what came in the documentation itself and in the book. if it doesn't work then it does indeed suck
-i did look into this, C++ is the big one, almost anything you can think of is C++, if you want to help develop mods and plugins for games you better know C++
-spreading across languages is a GOOD thing but only if you do it systematically. by that i mean do one language until you know it very well then go to the next instead of just going half fast and both until you hopeful know wtf you are doing in either language at the end.
-i have 3 books on C++ and they ALL say that there is a declaration called "string" but my compiler does not understand that
-within the first parts of all the books it only says how to declare arrays with array[#] value like: chooco[0] = 8 and these books don't go that damn fast......they mostly do lots of repetition on simple things then skim hard stuff. it doesn't say that you can do chooco[] = 1,5,6,8,2,8,8,1,4,5,0 or whatever

if you don't know and you can't find the answers anywhere, you ask.. i'll give a link to that GNU compiler thing i have on the CD incase anybody wants to give her a try. just give me 10 minutes or so.

Antonio, i'm 16 and yes i plan to be a programmer. i've been working with computers since i was 8. i'm taking computer programming next year.
 
Back
Top