Dec 31, 2015 at 10:04am
it gives appcrash problem after command promt window when i run it.
i use dev c++ 4.9.9.2
#include <iostream>
#include<string>
using namespace std;
void deneme()
{
string isim ;
deneme();
cout<<"isim gir " ;
cin>>isim;
cout<<"hosgeldin " << isim ;
}
int main()
{
int x;
deneme();
cin>>x;
}
Dec 31, 2015 at 10:14am
main() calls deneme(), which calls deneme(), which calls deneme(), ... eventually the program runs out of stack memory causing a program crash.
Dec 31, 2015 at 10:17am
and what is the solution. how can i fix it.. thank u
Dec 31, 2015 at 10:19am
Why is deneme() calling deneme()?
Dec 31, 2015 at 10:39am
i am new and trying to learn.
in this lesson trying to learn functions.
Dec 31, 2015 at 10:40am
thank u "Why is deneme() calling deneme()?"
i understand...