TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- A program I wrote
Pages (2): « 1 [2]


Posted by itsTrueSonic on Dec-30-2004 01:00:

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!


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.


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 .. )

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


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


Posted by digitalbreach on Dec-30-2004 01:47:

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


Posted by verndogs on Dec-30-2004 04:18:

C# is pretty much like Java, but has a few things here and there that makes it a bit better than Java.


Posted by verndogs on Dec-30-2004 04:19:

In C#, when you have to use pointers, you have to label it as unsafe code.

For some reason that cracks me up.


Posted by Sunsnail on Dec-31-2004 07:48:

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


Posted by sensorium on Dec-31-2004 08:22:

Try "char anything".

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

Then cin anything.


Posted by Sunsnail on Dec-31-2004 08:28:

I tried that, but it didn't work. compiler gave an error or something


Posted by sensorium on Dec-31-2004 08:30:

When I said "anything" I meant a letter like "a".


Posted by Sunsnail on Dec-31-2004 08:30:

right


Posted by Sunsnail on Dec-31-2004 08:40:

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


Posted by sensorium on Dec-31-2004 08:40:

So I wasn't that far off the road.


Posted by Sunsnail on Dec-31-2004 08:48:

it compiles just fine, but it doesn't run.


Posted by sensorium on Dec-31-2004 08:56:

Just remembered, I forgot to look for the floppies.

If it's a string that you're using, don't you need an additional header?


Posted by Sunsnail on Dec-31-2004 08:58:

Nope, since its a char. Like i said, it compiled fine. I would think it wouldn't compile correctly if i was missing a #include thingy


Posted by Sunsnail on Dec-31-2004 09:12:

side question: My programs are like 500KB big for 20 lines of code............wtf?


Posted by digitalbreach on Dec-31-2004 23:12:

quote:
Originally posted by Sunsnail

while (strcmp(x,"y")) {


maybe cause you didn't initialize the 'x' character and you only declared it.


Posted by Sunsnail on Jan-01-2005 13:31:

Im bumping a thread from last year!


Pages (2): « 1 [2]

Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.