473,387 Members | 3,801 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,387 software developers and data experts.

Help "parse error", "too many arguments" and "at this port in"

On that program the compiler says "parse error" on line 8, 10, 12 and 21, it also says "too many arguments" on lines 10, 12 and finally it says "at this port in" on lines 13, 14, 20 . How could I solve it? I know it may be noob mistakes, but this is my first program ;-)

Expand|Select|Wrap|Line Numbers
  1. main(){
  2.     int Operando_1;
  3.     int Operando_2;
  4.     int Suma;
  5.     int Diferencia;
  6.     int Producto;
  7. void clrscr()
  8. clrscr();
  9. void printf()
  10. printf("introduce un numero");
  11. void scanf()
  12. scanf("%i",&Operando_1);
  13. printf("ahora mete otro");
  14. scanf("%i",&Operando_2);
  15.  
  16. Suma = (Operando_1 + Operando_2);
  17. Diferencia = (Operando_1 - Operando_2);
  18. Producto = (Operando_1 * Operando_2);
  19.  
  20. printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval")
  21. printf("/n La suma de los numeros ke as metio es: %i", Suma)
  22. printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia)
  23. printf("/n El producto de los numeros ke as metio es: %i", Producto)
  24. printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval")
  25. printf("/n by:DrVitoti")
  26. }
Oct 16 '07 #1
3 2972
Banfa
9,065 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. main(){    /* main returns int */
  2.     int Operando_1;
  3.     int Operando_2;
  4.     int Suma;
  5.     int Diferencia;
  6.     int Producto;
  7. void clrscr()    /* missing ; but you should be including conio.h */
  8. clrscr();
  9. void printf()    /* missing ; but you should be including stdio.h */
  10. printf("introduce un numero");
  11. void scanf()    /* missing ; but you should be including stdio.h */
  12. scanf("%i",&Operando_1);
  13. printf("ahora mete otro");
  14. scanf("%i",&Operando_2);
  15.  
  16. Suma = (Operando_1 + Operando_2);
  17. Diferencia = (Operando_1 - Operando_2);
  18. Producto = (Operando_1 * Operando_2);
  19.  
  20. printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval")    /* missing ; */
  21. printf("/n La suma de los numeros ke as metio es: %i", Suma)    /* missing ; */
  22. printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia)    /* missing ; */
  23. printf("/n El producto de los numeros ke as metio es: %i", Producto)    /* missing ; */
  24. printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval")    /* missing ; */
  25. printf("/n by:DrVitoti")    /* missing ; */
  26.  
  27. /* main should return an int value, 0 normally */
  28. }
Oct 16 '07 #2
Expand|Select|Wrap|Line Numbers
  1. main(){    /* main returns int */
  2.     int Operando_1;
  3.     int Operando_2;
  4.     int Suma;
  5.     int Diferencia;
  6.     int Producto;
  7. void clrscr()    /* missing ; but you should be including conio.h */
  8. clrscr();
  9. void printf()    /* missing ; but you should be including stdio.h */
  10. printf("introduce un numero");
  11. void scanf()    /* missing ; but you should be including stdio.h */
  12. scanf("%i",&Operando_1);
  13. printf("ahora mete otro");
  14. scanf("%i",&Operando_2);
  15.  
  16. Suma = (Operando_1 + Operando_2);
  17. Diferencia = (Operando_1 - Operando_2);
  18. Producto = (Operando_1 * Operando_2);
  19.  
  20. printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval")    /* missing ; */
  21. printf("/n La suma de los numeros ke as metio es: %i", Suma)    /* missing ; */
  22. printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia)    /* missing ; */
  23. printf("/n El producto de los numeros ke as metio es: %i", Producto)    /* missing ; */
  24. printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval")    /* missing ; */
  25. printf("/n by:DrVitoti")    /* missing ; */
  26.  
  27. /* main should return an int value, 0 normally */
  28. }













Then, how would it be correct for the compiler to not show any errors? Could you tell me?
Oct 17 '07 #3
Banfa
9,065 Expert Mod 8TB
Then, how would it be correct for the compiler to not show any errors? Could you tell me?
Referring to what you say in your first post you are getting parse errors.
Oct 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Susan Bricker | last post by:
Greetings Experts ... I have a routine that is invoked when a command button is clicked. The button is located in a form that is tied to a table of Project records. Each Project Record has 0 to...
0
by: Lauren Wilson | last post by:
The error does not have an error number. It's not even a normal Access error message box. Hope someone has some insight to this problem. I have a form that contains a large (5" x 4") text box...
1
by: iam247 | last post by:
Hi I have a web page which receives information from a form (using request.form) and also attempts to look at an Access query to read in recoeds to a variable named rsGroup. When I have the...
11
by: MLH | last post by:
If this is what MySQL is set to... SELECT DISTINCTROW qryVehiclesNowners5.SerialNum, qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner, qryVehiclesNowners5.VehicleJobID ,...
1
by: Punker | last post by:
Hi guys, I am trying to create export specifications for one of my queries. Now when I run the query on its own, it works perfectly. However when I try to export the data I get back the error...
4
by: Christian Kirsch | last post by:
Hi folks, i use dev-c++ as my favourite development environment but i have some little problems. I wrote a include file called ppmimage.h and now i tried to implement it into the main file the...
3
by: filip.norrgard | last post by:
Hi All! I've been developing an ASP.Net 2.0 web application using the Visual Studio 2005 tools. Currently datagrids on a page are filled with data from a dataset (a .xsd file in the "project")...
0
by: thepisu | last post by:
I have a Windows 2003 Server with IIS 6, PHP with CGI. Yesterday I decided to update from PHP 5.1.4 to 5.2.1, but "slash arguments" (in a Moodle installation) stop working, I mean addresses like...
7
by: pike | last post by:
db2 8.1 FP11 on AIX 5.3.0.0 . The db2diag.log is intermittently reporting EMFILE (24) "Too many open files" errors. The culprit is always db2hmon. Sample db2diag.log output follows: ...
0
benchpolo
by: benchpolo | last post by:
I am currently modifying an existing DTS process by adding a new field in the Transformation task. This process queries data from SQL tables and import it to MSExcel. Steps 1. Drop the table...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.