473,327 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Please compile for me!

Hi!

Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.

thanks!

Cristian

-------------------------------------------

#include<iostream.h>

void main()

{
int i;
int cl;
double money[4]={0,0,0,0};
double amo;

while (cl!=999)

{

****cout<<"Enter the class of the contributor \n";
****cin>>cl;
****cout<<"Enter amount \n";
****cin>>amo;
if (cl==1)
money[0]=amo+money[0];

if (cl==2)
money[1]=amo+money[1];

if (cl==3)
money[2]=amo+money[2];

if (cl==4)
money[3]=amo+money[3];
}
cout<<"The freshmen contributed "<<money[0]<<"$ \n";
cout<<"The sophomores contributed "<<money[1]<<"$ \n";
cout<<"The j contributed "<<money[2]<<"$ \n";
cout<<"The s contributed "<<money[3]<<"$ \n";

int largest=0;

for (i=0; i<4:i++)
if(money[i]>money[largest])
largest=i;

cout<<"The number of the class that contributed the most is"<<i+1;
}
Jul 19 '05 #1
5 1802

"Cristian Soto" <cr*****@hotmail.com> wrote in message

Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.

thanks!

Cristian


Wow! You really shouldn't have gone to so much trouble. I mean, you
actually wrote the code! You should have just posted the assignment and let
us write it for you, too! :-)

You've got some nerve, especially asking for us to "correct if there are any
bugs". Doesn't your school have any computers that will compile a simple
program? Head down there and do it yourself.

Jul 19 '05 #2
Cristian Soto wrote:
Hi!

Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.

This is such a sad story! I would be happy to help, Christian, but my
eyes are now so teary than I can no longer see the screen.

You could save us both this kind of heartache by starting your
assignments earlier, and planning for the resources you are going to need.

Oh, and you should also be sure to allocate some time to reading this
newsgroups FAQs and welcome message before your next post.

- Adam

Jul 19 '05 #3

"Cristian Soto" <cr*****@hotmail.com> wrote in message
news:b8**************************@posting.google.c om...
Hi!

Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.

thanks!

Cristian

-------------------------------------------

[SNIP]

Sorry, wrong newsgroup. This should be posted in
comp.looking.for.idiots.doing.my.homework

BTW the trouble with your program already starts with the first two lines.

Good luck!
Chris
Jul 19 '05 #4

"Cristian Soto" <cr*****@hotmail.com> wrote in message
news:b8**************************@posting.google.c om...
Hi!

Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.


Gee, I was going to, and add comments, upgrade it to standard, etc. but,
err... I just don't have the time right now.
However, www.bloodshed.net will solve your compiler problem.
--
Gary
Jul 19 '05 #5

"Cristian Soto" <cr*****@hotmail.com> wrote in message
news:b8**************************@posting.google.c om...
Please correct if there are any bugs.


Classic!

OK, but please send me $100.
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Roberto Modica | last post by:
Hi all, I am trying to create a namespace hierachy but i think i am doing something wrong. I have an DAL vb file with the namespace: CompanyName.newsletter.DAL and i compile that using...
4
by: mangi03 | last post by:
Hi, I came acrosss g++ compile errors whenever I make a function call by reference and found out from the test program that compiler is treating the function argument differently when another...
7
by: MuZZy | last post by:
HI I just wonder if someone can help me with this: I have a windows app project developed on VC++ 6.0. I need to adapt it to be able to compile as a console app as well (So it would call main()...
1
by: MR | last post by:
Hi, it has been observed that when we try to instantiate a .Net dll for the first time in a session (e.g. from an exe in .Net), it takes almost 10 times compared to subsequent instantiations. ...
10
by: Rob Dob | last post by:
Hi, I'm amazed!!! I am using VS2005, I create a new web project, c# and then within the default.aspx form right mouse click and select "View Compnent Designer" , I then select and drag a...
4
by: livin | last post by:
my log... INFO urllib.urlopen('http://192.168.1.11/hact/kitchen.asp', urllib.urlencode({'Action': 'hs.ExecX10ByName+Kitchen+Lights%2C+On %2C+100&x=4&y=6'})) INFO INFO File...
2
by: Raghunadhan | last post by:
pLS HELP ME HOW THIS ERROR OCCURED . WHEN RUNNING JSP PAGE BY USING TOMCAT APACHE.... org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in...
5
by: mohammaditraders | last post by:
Question # 1 Write a program which consists of a class named Student, the class should consists of three data members Name, Ob_marks, Total_marks and two member functions...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.