Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 05-30-07   #1 (permalink)
>?<Legendary>?<
 
iampoor's Avatar
 
nvidia

Join Date: Apr 2007
Location: At the end of the rainbow
Posts: 6,382
Blog Entries: 5

Rep: 389 iampoor is a proven memberiampoor is a proven memberiampoor is a proven memberiampoor is a proven member
Unique Rep: 243
Hardware Reviews: 4
Trader Rating: 12
Default C compiler help

Hi


Ok first I am a noob at programming. Whenever I make a C program and compile it it opens and then it goes and nothing happened. This appens even with manydemo programs so its not just me
__________________
The 2 Greatest Typos Of All Time
Quote:
Originally Posted by Metalica732 View Post
Yeah As Poop said you just have to mail the thingy in.
Quote:
Originally Posted by Overclock-E View Post
Check your PMS man, I want this system!

System: Cost me 20$ (Yes it actually did)
CPU
e2180@3.0ghz
Motherboard
Abit Ip-35e
Memory
2x1 OCZ reaper
Graphics Card
8800GTS 320mb
Hard Drive
100gb IDE
Power Supply
500watt Rosewill
Case
Sunbeam UFO
CPU cooling
Stock
GPU cooling
Stock
Monitor
17inch 1280x1024 CRT
iampoor is offline Overclocked Account iampoor's Gallery   Reply With Quote
Old 05-31-07   #2 (permalink)
AMD Overclocker
 
decompiled's Avatar
 
amd nvidia

Join Date: Feb 2006
Location: Redsox Nation
Posts: 468

Rep: 47 decompiled is acknowledged by some
Unique Rep: 45
Hardware Reviews: 9
Trader Rating: 0
Default

If your going to be developing in C then I would suggest getting yourself something setup like ubuntu. Linux machines come with a ton of features for compiling C and C++. Visual Studio is nice however I couldn't imagine using C without some flavor of *nix.

I particularly am inlcinded to FreeBSD due to the BSD liscence. I'd suggest ubuntu for someone who hasn't used Linux before. Very simple install process and you will have g++ to compile native to the system.

If however you don't want to take that route. You can find a free C compilers here http://www.thefreecountry.com/compilers/cpp.shtml

System: Slow Poke
CPU
AMD X2 4400
Motherboard
MSI K8N Diamond +
Memory
3gb TCC5
Graphics Card
eVGA 7900GS
Hard Drive
74gb Raptor + Raid 1 640's
Sound Card
Audigy SE
Power Supply
OCZ 520 PowerStream
Case
Antec P180
CPU cooling
Stock AMD
GPU cooling
Stock eVGA
OS
Vista x64
Monitor
Dell 1905FP
decompiled is offline   Reply With Quote
Old 05-31-07   #3 (permalink)
Programmer
 
kdbolt70's Avatar
 
intel ati

Join Date: May 2007
Location: Walled Lake, MI
Posts: 1,112

Rep: 127 kdbolt70 is acknowledged by manykdbolt70 is acknowledged by many
Unique Rep: 92
Folding Team Rank: 234
Trader Rating: 1
Default

What IDE are you currently using? My guess would be DevShed. I suggest, right before your return in main() to put the line

Code:
system("pause");
This will freeze the system with your output window still in tact. Or you could route your output to an output file. Plenty of Docs on that.

And why are you coding in C? Thats sooo 10 years ago
__________________

~M Hail to the Victors M~

System: It's about time!
CPU
Q6600 G0 @3.3Ghz
Motherboard
Gigabyte P35-DS3L
Memory
2Gb Ballistix DDR2 800 @915Mhz
Graphics Card
Sapphire 2900Pro Flashed to XT
Hard Drive
Seagate Barracuda 320Gb
Sound Card
Onboard
Power Supply
Corsair HX 620W
Case
CM 690
CPU cooling
Tuniq Tower 120
GPU cooling
stock
OS
Vista Business and VMWare Ubuntu
Monitor
Acer AL2223W 22"
kdbolt70 is offline I fold for Overclock.net   Reply With Quote
Old 05-31-07   #4 (permalink)
Programmer
 
kdbolt70's Avatar
 
intel ati

Join Date: May 2007
Location: Walled Lake, MI
Posts: 1,112

Rep: 127 kdbolt70 is acknowledged by manykdbolt70 is acknowledged by many
Unique Rep: 92
Folding Team Rank: 234
Trader Rating: 1
Default

Quote:
Originally Posted by decompiled View Post
If your going to be developing in C then I would suggest getting yourself something setup like ubuntu. Linux machines come with a ton of features for compiling C and C++. Visual Studio is nice however I couldn't imagine using C without some flavor of *nix.

I particularly am inlcinded to FreeBSD due to the BSD liscence. I'd suggest ubuntu for someone who hasn't used Linux before. Very simple install process and you will have g++ to compile native to the system.

If however you don't want to take that route. You can find a free C compilers here http://www.thefreecountry.com/compilers/cpp.shtml
I understand why you suggest linux, I think we all know linux is god for programming in many cases, but I think he's just writing a basic C program and is having trouble with his compiler in his IDE. I don't think he needs to get all set up with a *nix environment to do what he's trying to do. In the long run however, a linux setup would be great for programming
__________________

~M Hail to the Victors M~

System: It's about time!
CPU
Q6600 G0 @3.3Ghz
Motherboard
Gigabyte P35-DS3L
Memory
2Gb Ballistix DDR2 800 @915Mhz
Graphics Card
Sapphire 2900Pro Flashed to XT
Hard Drive
Seagate Barracuda 320Gb
Sound Card
Onboard
Power Supply
Corsair HX 620W
Case
CM 690
CPU cooling
Tuniq Tower 120
GPU cooling
stock
OS
Vista Business and VMWare Ubuntu
Monitor
Acer AL2223W 22"
kdbolt70 is offline I fold for Overclock.net   Reply With Quote
Old 05-31-07   #5 (permalink)
4.0ghz
 
SoaDMTGguy's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Nottingham PA
Posts: 4,929

Rep: 306 SoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven member
Unique Rep: 227
FAQs Submitted: 2
Hardware Reviews: 3
Trader Rating: 15
Default

Ya, you need to add the "system("PAUSE");" line at the end. Other wise it will close the window after the program runs.
__________________
Quote:
Originally Posted by PaulTa View Post
I'm like Obi wan. I just pop in and out, offer vague comments and advice, and then tell you to use the force.

System: Teh MacBook!
CPU
Intel Core 2 Duo T7500 2.2 GHz
Motherboard
Apple MacBook Pro Stock Motherboard
Memory
4 GB (2x 2 GB) G.Skill DDR2 667 MHz DDR2
Graphics Card
nVidia GeForce Go 8600 GT 128 MB
Hard Drive
120 GB Fujitsu SATA150
Sound Card
Intel Sata Rosea HD Audio
Power Supply
Apple Stock Power Adapter
Case
15" Apple Aluminum MacBook Pro Case
CPU cooling
Stock
GPU cooling
Stock
OS
OS X 10.5 Leopard / Windows XP Pro / Fedora 8
Monitor
15" Apple LED Backlit MacBook Pro Matt Display
SoaDMTGguy is offline Overclocked Account   Reply With Quote
Old 05-31-07   #6 (permalink)
>?<Legendary>?<
 
iampoor's Avatar
 
nvidia

Join Date: Apr 2007
Location: At the end of the rainbow
Posts: 6,382
Blog Entries: 5

Rep: 389 iampoor is a proven memberiampoor is a proven memberiampoor is a proven memberiampoor is a proven member
Unique Rep: 243
Hardware Reviews: 4
Trader Rating: 12
Default

I have linux (not istalled yet). Also my c bok was written for the PDP 11 and is from 1976 so its not really explained


REP +
__________________
The 2 Greatest Typos Of All Time
Quote:
Originally Posted by Metalica732 View Post
Yeah As Poop said you just have to mail the thingy in.
Quote:
Originally Posted by Overclock-E View Post
Check your PMS man, I want this system!

System: Cost me 20$ (Yes it actually did)
CPU
e2180@3.0ghz
Motherboard
Abit Ip-35e
Memory
2x1 OCZ reaper
Graphics Card
8800GTS 320mb
Hard Drive
100gb IDE
Power Supply
500watt Rosewill
Case
Sunbeam UFO
CPU cooling
Stock
GPU cooling
Stock
Monitor
17inch 1280x1024 CRT
iampoor is offline Overclocked Account iampoor's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 01:30 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.32154 seconds with 8 queries