so when i go to run the program i just get a error message saying the the program has stopped working correctly. now i know im new like brand new to this so any help is great lol
#include <iostream>
using namespace std;
int main ()
{
char letter ; letter = 'A' ; // declared then initialized.
int number ; number = 100 ; // declared then initialized.
float decimal = 7.5 ; // declared and initialized.
double pi = 3.14159 ; // declared and initialized.
bool isTrue = false ; // declared and initialized.
Look fine to me technically with letter and number they are not initialed. You just assigned a value to the uninitialized value. Also if you output a boolean like that it will display a 1 or 0 at the top add the precompiled header #include <iomanip> the before your boolean put boolalpha <<
the error come when it starts the programs starts it gets the first line through and i can see it then it is basically a not responding kinda thing is there a way i can attach a screen shot so i can show you. i run the .exe and then got a
windows error
a problem cause the program to stop working correctly
windows will close the program and notify you if a solution is available
is it just my computer some thing i need to change. if so what lol
Try running it using the compiler instead you might be missing a .dll also you can put the image on a site that allows you to upload images then put the link here.
Build it then run it. And certain IDE's don't compile it with the .dll like qt.. But if you are using visual studios or code::blocks you shouldn't need that. Anycase most people run the program via the IDE and not the .exe file.