My programs are not runs. | Sololearn: Learn to code for FREE!


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?

3/19/2018 12:56:31 PM


16 Answers

New Answer


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


plese insert that code link


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 .


Thanks for answering.


#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; }


hey just try this code ...๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š


in your first code error is in this line - cout<<"sum of two numbers ="sum ; answer is cout<<"sum of two numbers="<<sum;


expected declaration ? which code ??


I am programming a code when i run it the output is expected initializer before { .and expected declaration before }. what i do?


#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?


#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. {


Tell me what is the meaning of expected initializer,and expected declaration .In programming.


what error in programm link is inserted.




please post ur code link then we help u in better way


no error in the code