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 ;-) -
main(){
-
int Operando_1;
-
int Operando_2;
-
int Suma;
-
int Diferencia;
-
int Producto;
-
void clrscr()
-
clrscr();
-
void printf()
-
printf("introduce un numero");
-
void scanf()
-
scanf("%i",&Operando_1);
-
printf("ahora mete otro");
-
scanf("%i",&Operando_2);
-
-
Suma = (Operando_1 + Operando_2);
-
Diferencia = (Operando_1 - Operando_2);
-
Producto = (Operando_1 * Operando_2);
-
-
printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval")
-
printf("/n La suma de los numeros ke as metio es: %i", Suma)
-
printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia)
-
printf("/n El producto de los numeros ke as metio es: %i", Producto)
-
printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval")
-
printf("/n by:DrVitoti")
-
}
3 2985 Banfa 9,065
Recognized Expert Moderator Expert -
main(){ /* main returns int */
-
int Operando_1;
-
int Operando_2;
-
int Suma;
-
int Diferencia;
-
int Producto;
-
void clrscr() /* missing ; but you should be including conio.h */
-
clrscr();
-
void printf() /* missing ; but you should be including stdio.h */
-
printf("introduce un numero");
-
void scanf() /* missing ; but you should be including stdio.h */
-
scanf("%i",&Operando_1);
-
printf("ahora mete otro");
-
scanf("%i",&Operando_2);
-
-
Suma = (Operando_1 + Operando_2);
-
Diferencia = (Operando_1 - Operando_2);
-
Producto = (Operando_1 * Operando_2);
-
-
printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval") /* missing ; */
-
printf("/n La suma de los numeros ke as metio es: %i", Suma) /* missing ; */
-
printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia) /* missing ; */
-
printf("/n El producto de los numeros ke as metio es: %i", Producto) /* missing ; */
-
printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval") /* missing ; */
-
printf("/n by:DrVitoti") /* missing ; */
-
-
/* main should return an int value, 0 normally */
-
}
-
main(){ /* main returns int */
-
int Operando_1;
-
int Operando_2;
-
int Suma;
-
int Diferencia;
-
int Producto;
-
void clrscr() /* missing ; but you should be including conio.h */
-
clrscr();
-
void printf() /* missing ; but you should be including stdio.h */
-
printf("introduce un numero");
-
void scanf() /* missing ; but you should be including stdio.h */
-
scanf("%i",&Operando_1);
-
printf("ahora mete otro");
-
scanf("%i",&Operando_2);
-
-
Suma = (Operando_1 + Operando_2);
-
Diferencia = (Operando_1 - Operando_2);
-
Producto = (Operando_1 * Operando_2);
-
-
printf("/n Pos mu bien, ahora veras la magia de mi programacion, chaval") /* missing ; */
-
printf("/n La suma de los numeros ke as metio es: %i", Suma) /* missing ; */
-
printf("/n La diferencia de los numeros ke as metio es: %i", Diferencia) /* missing ; */
-
printf("/n El producto de los numeros ke as metio es: %i", Producto) /* missing ; */
-
printf("/n Y si no te lo crees compruebalo kon la calculadora, xaval") /* missing ; */
-
printf("/n by:DrVitoti") /* missing ; */
-
-
/* main should return an int value, 0 normally */
-
}
Then, how would it be correct for the compiler to not show any errors? Could you tell me?
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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
|
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 =...
|
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...
| |
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"
|
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...
|
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...
|
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 ...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| | |