return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

Pages: 1 2 [3] 4 
A program I wrote (pg. 3)
View this Thread in Original format
Trancedewd
quote:
Originally posted by Sunsnail
it wouldn't open :conf:


LOL it doesnt work on other computers? Oh well, i must really suck at programming :stongue:
itsTrueSonic
quote:
Originally posted by Nou
I havnt even looked at C# or .NET that much... I really want to get back into Visual Studio and start learning that stuff again, but work keeps me tied down in PHP and Javascripting and boring logic controls, nothing exciting! :p


haha .. i am the total opposite of you .. i do some moderate PHP, but i spend most of my work in Visual Studio .. don't work on .NET much, because i am but a poor student who can't afford expensive software like that .. :( ..

the job place has got me on Java, so i am pretty content at the moment .. i enjoy Java's flexibility as much as i enjoy Visual Basic's flexibility (if any VB developers know what i mean.. hahahha) ..

quote:
Originally posted by 3xx3r7
Java eats C++ for breakfast. :p


im my opinion, Java has the same amount of advantages over C++ anytime ..

i like Java's exception handling, library management (.jar), portability, and runtime error pickups ..

however, i like C++'s class management, use of user-defined types (struct keyword), kernel use (people may have trouble with this .. i dont know .. i haven't had problems with memory with C++), and pointer references (very complex for others, but i find it useful and cool .. well i am a nerd of course .. :haha: )

quote:
Originally posted by Trancedewd
LOL it doesnt work on other computers? Oh well, i must really suck at programming :stongue:


bl60.bpl error??? .. working with borland c++ ?? .. you probably deployed it improperly .. hahaha ... that's the thing i hate with c++ .. in order to copy the .exe, you also sometimes need to copy the object files that is created with the executable ..
digitalbreach
quote:
Originally posted by itsTrueSonic
that's the thing i hate with c++ .. in order to copy the .exe, you also sometimes need to copy the object files that is created with the executable ..


probably the workspace file or any header files previously defined
verndogs
C# is pretty much like Java, but has a few things here and there that makes it a bit better than Java.
verndogs
In C#, when you have to use pointers, you have to label it as unsafe code.

For some reason that cracks me up.
Sunsnail
version 2.0!
quote:
#include

using namespace std;

int main()
{
float a, b, c;
int x;
while ( x != 1) {
cout << "This is Fahrenheit to Celsius convertor v2.0.\n";
cout << "Please enter the amount of degrees you would like to convert.\n";
cin >> a;
b = a - 32;
c = b * .5555555555;
cout << "The degrees is " << c << " celsius.\n";
cout << "Would you like to exit the program? Enter 1 if yes, anything else to continue.";
cin >> x;
}
return 0;
}


clicky click linky linky

Now I have a question. I tried to say, "enter y to exit." but I dont know how exactly...
ierxium
Try "char anything".

Then put "while(anything != y)" instead of the x.

Then cin anything.
Sunsnail
I tried that, but it didn't work. compiler gave an error or something
ierxium
When I said "anything" I meant a letter like "a".
Sunsnail
right

Sunsnail
ok so i have....

#include

using namespace std;

int main()
{
float a, b, c;
char *x;
while (strcmp(x,"y")) {
cout << "This is Fahrenheit to Celsius convertor v2.0.\n";
cout << "Please enter the amount of degrees you would like to convert.\n";
cin >> a;
b = a - 32;
c = b * .5555555555;
cout << "The degrees is " << c << " celsius.\n";
cout << "Would you like to exit the program? Enter y if yes, anything else to continue.";
cin >> x;
}
return 0;
}

but when i try and run the program, an error box opens and nothing happens
ierxium
So I wasn't that far off the road.
CLICK TO RETURN TO TOP OF PAGE
Pages: 1 2 [3] 4 
Privacy Statement