|
|
back to boardException in C++ Why my program get Crash? #include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); try{ throw 1; } catch(int i){ i++; } printf("%d", a + b); return 0; } Re: Exception in C++ You can not use any exceptions in your program. This is a mistake. Read FAQ first. Boboyev A+B Posted by Sunedge 28 Nov 2008 09:48 #include <iostream.h> int main() { float a, b; cin >> a >> b; cout << a + b << endl; return 0; } |
|
|