473,566 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

2 New Member
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 2985
Banfa
9,065 Recognized Expert Moderator Expert
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
DrVitoti
2 New Member
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 Recognized Expert Moderator Expert
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
1905
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 many Task Records associated with it (in another table). I want to 'logically remove' the Project Record and all Task Records for the Project (by...
0
1370
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 bound to a memo field. This field allows users to type in the text of an email to be sent through Outlook (via automation). I ONE user who send...
1
3584
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 following line commented, so it does not activate, I can successfully print all of the response.write's below: rsGroup.Open strSQL, adoCon
11
3326
by: MLH | last post by:
If this is what MySQL is set to... SELECT DISTINCTROW qryVehiclesNowners5.SerialNum, qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner, qryVehiclesNowners5.VehicleJobID , tblVehicleJobs.Reclaimed, tblVehicleJobs.VSaleID, tblVehicleJobs.ENF262Written FROM qryVehiclesNowners5 INNER JOIN tblVehicleJobs ON qryVehiclesNowners5.VehicleJobID =...
1
8024
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 message "Too few parameters. Expected 1." Has anyone encountered this before? Below is my SQL statement in case it helps: SELECT...
4
38144
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 following way: #include "ppmimage.h" When i start to compile the program i get the error: 1 "included from main.cpp"
3
2982
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") that, in turn, gets the data from MySql server. Locally testing it on my PC (Windows XP SP2, FYI) it works and no errors appear. However, when I...
0
1661
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 this: http://www.mysite.com/file.php/folder/File.zip Where, file.php is the script for downloading, and "folder/File.zip" is the file to...
7
8513
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: 2007-03-20-07.42.35.269106+060 I14996239C505 LEVEL: Severe (OS) PID : 2289758 TID : 772 PROC : db2hmon 0 INSTANCE: defser_t ...
0
1508
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 2. Create the table 3. Connect to SQL server and perform data import to excel When I was testing the new field that I added I am getting this...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.