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 > Application Programming

Reply
 
LinkBack Thread Tools
Old 06-12-05   #11 (permalink)
<3 TB303
 
Xaimus's Avatar
 
amd nvidia

Join Date: Dec 2004
Location: Manhattan, KS
Posts: 575

Trader Rating: 0
Default

Works very well for me:
Code:
imran@pandora:~/Programming$ cat crap.c
#include <stdio.h>

int main(void)
{
        int a, b, c, sum;

        printf("Input three integers: ");
        scanf("%d %d %d",&a,&b,&c);
        sum = (((a + b + c) * 2) + 7);
        printf("Twice the sum of your integers plus 7 is %d\n",sum);
}
imran@pandora:~/Programming$ cc crap.c
imran@pandora:~/Programming$ ./a.out
Input three integers: 5
9
7
Twice the sum of your integers plus 7 is 49
__________________
System: Turd
CPU
Sempron 2800+ :(
Motherboard
GA7NF-RZ :(
Memory
1.25GB
Graphics Card
geForce 6800XT
Hard Drive
80GB + 120GB
Sound Card
M-Audio Audiophile 192 :D
Power Supply
500W Seasonic S12
Case
Black Antec P180 :D
OS
FreeBSD 6.2-RELEASE :D :D
Monitor
Two 17" CRTs
Xaimus is offline Overclocked Account   Reply With Quote
Old 06-14-05   #12 (permalink)
XBox 360 Gamer
 
Chim3ra's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Rota, Espana
Posts: 4,368

Rep: 431 Chim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven member
Unique Rep: 279
FAQs Submitted: 7
Folding Team Rank: 890
Trader Rating: 3
Default

what is that stuff at the top?

in any case i got it figured out. the problem was the commas in between the integers. if i had put the commas in it wouldve worked alright. i took out the commas and it worked. thanks for the help everyone!
__________________
Read and heed, The Forum TS!!!
Trouble finding the FAQ page? Go Here
Help us, help you. Fill out your System Specs.
New to the art of Overclocking? Read these to get you started in the right direction. AMD Intel
XBox Live Gamertag: Wikk3d

System: The Stocker
CPU
Q9300
Motherboard
EVGA 750 SLI FTW
Memory
4GB G.Skill DDR2-800
Graphics Card
EVGA 9800 GTX KO
Hard Drive
Seagate Barracuda ES.2 ST3250310NS
Sound Card
SB X-FI Platinum
Power Supply
FSP Epsilon 600
Case
Antec P180
CPU cooling
Xigmatek HDT-S1283
GPU cooling
Stock
OS
Windows Vista SP1
Monitor
Dell 2405 FPW
Chim3ra is offline I fold for Overclock.net Overclocked Account Chim3ra's Gallery   Reply With Quote
Old 06-14-05   #13 (permalink)
Programmer
 
MrSmiley's Avatar
 
amd nvidia

Join Date: Oct 2004
Location: Manhattan, Kansas
Posts: 1,060

Rep: 72 MrSmiley is acknowledged by some
Unique Rep: 57
FAQs Submitted: 1
Folding Team Rank: 817
Hardware Reviews: 1
Trader Rating: 0
Default

Quote:
Originally Posted by Lov2Drift
what is that stuff at the top?

in any case i got it figured out. the problem was the commas in between the integers. if i had put the commas in it wouldve worked alright. i took out the commas and it worked. thanks for the help everyone!
that stuff is him compiling by command line on a loonix box, actually a unix box, actually a FreeBSD box.
__________________
System: My System
CPU
Intel 2.8GHz
Motherboard
ESG smth
Power Supply
Antec TruePower 350Watt
OS
FreeBSD
MrSmiley is offline I fold for Overclock.net   Reply With Quote
Old 06-14-05   #14 (permalink)
XBox 360 Gamer
 
Chim3ra's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Rota, Espana
Posts: 4,368

Rep: 431 Chim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven memberChim3ra is a proven member
Unique Rep: 279
FAQs Submitted: 7
Folding Team Rank: 890
Trader Rating: 3
Default

i see, well in any case. this next code is kicking my heineken. trying to figure it out myself though before i go seeking help.
__________________
Read and heed, The Forum TS!!!
Trouble finding the FAQ page? Go Here
Help us, help you. Fill out your System Specs.
New to the art of Overclocking? Read these to get you started in the right direction. AMD Intel
XBox Live Gamertag: Wikk3d

System: The Stocker
CPU
Q9300
Motherboard
EVGA 750 SLI FTW
Memory
4GB G.Skill DDR2-800
Graphics Card
EVGA 9800 GTX KO
Hard Drive
Seagate Barracuda ES.2 ST3250310NS
Sound Card
SB X-FI Platinum
Power Supply
FSP Epsilon 600
Case
Antec P180
CPU cooling
Xigmatek HDT-S1283
GPU cooling
Stock
OS
Windows Vista SP1
Monitor
Dell 2405 FPW
Chim3ra is offline I fold for Overclock.net Overclocked Account Chim3ra'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 04:01 AM.


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.36781 seconds with 9 queries