My programs are not runs. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

My programs are not runs.

My syllabus computer science C++ programs are not run hear ‚ when i run it the output is termination failed. What i do?

19th Mar 2018, 12:56 PM
shubham
16 Answers
+ 16
complete the course again by trying every example code given there //will not take more than 2 hours(maximum) as U have already completed that language //then try making smaller parts of your codes & look for errors & correct them if are available
19th Mar 2018, 1:07 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 16
plese insert that code link
26th May 2018, 4:46 PM
Vishnu
Vishnu - avatar
+ 14
In your school / collage . all computer using turbo c++ like software for study coding that too old #include <iostream.h> (your first code ) are using on turbo c++ . that do not support on sololearn .
26th May 2018, 4:25 PM
Vishnu
Vishnu - avatar
+ 12
Thanks for answering.
26th May 2018, 4:27 PM
shubham
+ 12
#include <iostream> using namespace std; int main() { int a,b,c; cout<<"Enter three numbers:\n"; cin>>a>>b>>c; if (a>b) if (a>c) cout <<"The biggest number is="<<a; else cout <<"The biggest number is="<<c; else if(b>c) cout <<"The biggest number is="<<b; else cout <<"The biggest number is="<<c; return 0; }
26th May 2018, 4:33 PM
Vishnu
Vishnu - avatar
+ 12
hey just try this code ...😊😊😊
26th May 2018, 4:34 PM
Vishnu
Vishnu - avatar
+ 12
in your first code error is in this line - cout<<"sum of two numbers ="sum ; answer is cout<<"sum of two numbers="<<sum;
26th May 2018, 4:39 PM
Vishnu
Vishnu - avatar
+ 11
expected declaration ? which code ??
26th May 2018, 4:42 PM
Vishnu
Vishnu - avatar
+ 11
I am programming a code when i run it the output is expected initializer before { .and expected declaration before }. what i do?
26th May 2018, 4:45 PM
shubham
+ 10
#include<iostream.h> #include<conio.h> void main () { clrscr (); int a,b,sum; cout <<"Enter the value of a and b "; cin >>a>>b; sum=a+b; cout<<"sum of two numbers ="sum ; getch (); } what is error in this code?
21st Mar 2018, 12:33 PM
shubham
+ 10
#include<iostream> using namespace std; int main () { int a,b,c,greatest; cout<<"Enter three numbers:"; cin>>a>>b>>c; greatest=(a>b&&a>c) cout<<"Greatest num is "<<greatest ; return 0; } What is wrong in this code .Tell me ,i can't understand. {
27th Apr 2018, 1:54 AM
shubham
+ 10
Tell me what is the meaning of expected initializer,and expected declaration .In programming.
26th May 2018, 4:35 PM
shubham
+ 10
what error in programm link is inserted.
27th May 2018, 7:32 AM
shubham
26th May 2018, 5:06 PM
shubham
+ 6
please post ur code link then we help u in better way
19th Mar 2018, 12:59 PM
Scooby
Scooby - avatar
19th Mar 2018, 2:48 PM
***