PDA

View Full Version : You Can Help Me!



dayknight
04-24-2002, 07:34 PM
compiling in borland c++ 5.5, no output shown? suggestions>

<code>
#include <stdio.h>
main()
{
printf("checking..");
getchar(); // to stop the program until entered
}

NEED TO KNOW!!!!

1 more thing , wats better visual c++ or borland?

fyodor
04-24-2002, 08:14 PM
I hate when people ask this question. You realize that in a nearly perfectly competitive market, such as that for high end compilers/IDEs, two products that can be compared using 'better' or 'worse' or some other similar qualitative judgment cannot exist?

To answer your first question: it works fine for me using the free cmdline tools. But you need to use int main(), which returns a value of 0 if successful

taylorguitarman
04-24-2002, 09:22 PM
Go MinGW baby! GCC all the way.

no-one
04-24-2002, 09:25 PM
first THIS BELONGS ON THE C FORUM!


add
fflush(stdout);
after your call to printf();

>1 more thing , wats better visual c++ or borland?

this is almost impossible to answer fairly its all opinion i use CodeWarrior but it is not for the faint of heart, it is far less forgiving of code error than Borland or MSVC, not really a Compiler for beginners, Most people start with MSVC since its easy to learn and very forgiving.

Sentaku senshi
04-24-2002, 09:59 PM
>1 more thing , wats better visual c++ or borland?

Depens

Borland's latest vs. VC++ 6 (not .net/7)

Borland is better for applications
VC++ is better for games

Code warrior is supposted to be better then both.

I don't how vc++.net stacks up, thought.

tim545666
04-24-2002, 11:19 PM
Code Warrior? The one made by Metroworks? That thing is a slow pile of crap. I'd go with Microsoft because it seems to be more widely used and it's really easy to use.

no-one
04-25-2002, 12:49 AM
>Code Warrior? The one made by Metroworks? That thing is a slow pile of crap.

whateva! mine is like lightning, its faster than MSVC and compiles code at about a fifth the size without even optimizing it, plus my code execution is slightly faster... AND IM USING VERSION 4 FOR CRAPS SAKE!! god only knows what 7.0 can do! I can't afford an update but when i can i know where my money goes!

lostminds
04-25-2002, 12:52 AM
I agree with no-one:D

RobR
04-25-2002, 03:39 AM
Originally posted by lostminds
I agree with no-one:D

Quite right. I never agree with anybody either:D :D :D

quentin
04-25-2002, 08:18 AM
You can help me too. Does anyone know why I can't post a thread. I click on New thread and It says no forum specified. And I did follow a valid link.

quentin
04-25-2002, 08:24 AM
PS: Does anyone use MPW GM on the Mac? I can't get it to compile any of my programs properly without errors. I'm only a beginner so it's nothing complicated I know this should eb in the C forum

dayknight
04-25-2002, 03:07 PM
i know CodeWarrior is the best and is not hard to use (tho i use it on macs @ my school). Did some1 say it is slow...
i dont think so. on those crappy macs it loads so quickly as well as it compiles fast

just my opinion!!!

RobR
04-25-2002, 03:14 PM
Does anyone know why I can't post a thread. I click on New thread and It says no forum specified. And I did follow a valid link.

What page were you on when you tried to post (copy & paste the URL into your reply from your address bar).

I'll try from there.

tim545666
04-25-2002, 04:19 PM
I guess I must be wrong about code wrrior, maybe I got confused with another compiler or something.

dayknight
04-25-2002, 05:36 PM
not maybe, u must be ;)

dayknight
04-25-2002, 06:10 PM
it is still not showing the output, code:

#include <stdio.h>
void main(void)
{
int num;
printf("checking..");
scanf("%d",&num);
fflush(stdout);
getchar(); // to stop the program until entered
}


could some1 tell me how to write code in visual 6.0, cant seem to find it(all i find is form argg!)

jdinger
04-26-2002, 08:57 AM
First off, please use code tags.
Secondly, main returns int, not void.



#include <stdio.h>

int main()
{
int num;
printf("checking..");
scanf("%d",&num);
fflush(stdout);
getchar();
return(0);
}


This code compiles and runs fine in VC++ 6. Are you getting an
error or is the program just not doing what you mean for it to do?

dayknight
04-26-2002, 07:27 PM
i have visual stdio 6.0 ent. does it have visual c++ (i cant find it)

no-one
04-26-2002, 08:53 PM
put the fflush(stdout) after printf() but before scanf()!

secondly in MSVC naming a file .cpp means its wannabe ANSI C++ code and will be compiled so, if its a .c then its wannabe ANSI C

dayknight
04-26-2002, 08:59 PM
i got the dev c++ is way easier n better(i guess)
stupid bornad and MICROSOFT(i will teach em whos better, bunch of lamers dont even know wat we want!)


Get rdy for a new compiler CALLED "DAYKNIGHT C++"
err!

1 more thing, how many posts till that stupid "junior" is removed from my name(doesnt look good on me :))

no-one
04-26-2002, 09:03 PM
>i got the dev c++ is way easier n better(i guess)

hopefully!

>i will teach em whos better, bunch of lamers dont even know wat we want!

do, and no they dont.

>Get rdy for a new compiler CALLED "DAYKNIGHT C++"
err!

with a rich feature set and FULL ANSI compliance?

>1 more thing, how many posts till that stupid "junior" is removed from my name(doesnt look good on me

1 more

congratulations your a member!

dayknight
04-27-2002, 11:57 AM
it was gona be removed, as i complained these crazy mods.