Journal #5044

Posted 16 years ago2008-05-03 12:28:01 UTC
Programming sucks

32 Comments

Commented 16 years ago2008-05-03 12:39:35 UTC Comment #58616
no U
Commented 16 years ago2008-05-03 12:41:11 UTC Comment #58630
u
Commented 16 years ago2008-05-03 12:43:23 UTC Comment #58617
u.
Commented 16 years ago2008-05-03 12:46:30 UTC Comment #58613
U.
Commented 16 years ago2008-05-03 12:46:54 UTC Comment #58631
u SUCK AS MUCH AS PROGRAMMING
Commented 16 years ago2008-05-03 12:58:04 UTC Comment #58615
NOW I'VE GOT U! U ARE NO MATCH FOR ME! I'LL SHORT CIRCUIT U! WHAT WAS THAT! THAT! WAS MY SPIDER WEB!
Commented 16 years ago2008-05-03 13:08:31 UTC Comment #58618
PEW PEW
SILENCE
GOODBYE SPIDERMAAAAAN

OH LOOK! IT'S SPIDERMAN! SHOOT HIM!

LOOKS LIKE YOU ARE A BOORN LOOOOOSSSEEER
Commented 16 years ago2008-05-03 13:14:31 UTC Comment #58636
SPIDER PIG SPIDER PIG, DOES WHATEVER A SPIDER PIG DOES, CAN HE SUCK, AS MUCH AS SPIKE? NO HE CANT, HES A PIG, WATCH OUT, HERE COMES THE SPIDERPIIIG
Commented 16 years ago2008-05-03 13:18:12 UTC Comment #58619
Shut it U
This r mai base
Commented 16 years ago2008-05-03 13:19:51 UTC Comment #58611
What language?
Commented 16 years ago2008-05-03 13:24:09 UTC Comment #58632
C++
Commented 16 years ago2008-05-03 13:37:24 UTC Comment #58612
Try Visual Basic .NET 2005.
I can help you to get started. I've been .NETting for about two years.
VB.NET is much easier to master and learn, but keep in mind that you can't use it for HL SDK programming.

Your choice.
Commented 16 years ago2008-05-03 13:52:05 UTC Comment #58633
It's for an university project, to compile it on Linux console. I have windows vista on my pc. I just want to create a main program and some classes and then link all the .o to have the .exe (yeah I'm a programming noob)

EDIT: well... I want to compile it on windows, not just linux
Commented 16 years ago2008-05-03 15:13:30 UTC Comment #58637
And... what's the problem?
Install CygWIN and the gcc-g++ package, then open the cygwin console and write this:
g++ -o /test.exe /spikes_project_main.cpp
Just like you would do if you were running linux/os x.
Commented 16 years ago2008-05-03 15:52:48 UTC Comment #58620
#include <iostream>
using namespace std;
int main(){
char yesno;
system("color b");
cout << "Hello? i'm Spike te programator" << endl;
cout << "Do i suck or not?: y/n" << endl;
cin >> yesno;
switch(yesno)
{
case 'y' :
cout << "No hes a good one" << endl;
break;
case 'n' :
cout << "You sure?" << endl;
default:
cout << "Are you retard? you can only use N/Y!!!" << endl;
}
system("pause");
system("CLS");
return main();
}
Commented 16 years ago2008-05-03 17:56:34 UTC Comment #58638
Why are you calling main() at the end of main()?
If you hold down enter that you will eventually run out of RAM.
And I think you forgot some break; statements...
Commented 16 years ago2008-05-03 18:06:48 UTC Comment #58634
I don't kinow what's case and switch, lol, Well I'll download CygWIN and see what happens. Classes are too difficult :_(
Commented 16 years ago2008-05-03 19:26:27 UTC Comment #58621
-potatis i'm calling main that after it ends to start again. I havnt forgot anything. There is no point of using break; after last case.For the ram thing its easy to use Sleep(100). but its just like saing typeing /me dosent work:O.
-spike Switch can aslo be made with If. If you like programming/or want to learn C++ its a good choice, its portable and you dont need frameworks like vb.net. If you dont know the basics cygwin is useless.
Commented 16 years ago2008-05-03 20:03:01 UTC Comment #58639
"There is no point of using break; after last case" No, but after "You shure?".

"For the ram thing its easy to use Sleep(100)" thats not what I meant. If a function calls itself, without terminating itself, some memory are still left, and it will be, always, if the instance of the function is not terminated. And every time you call the function more and more memory will be used. It's like saying "every time you think of a throw a ball, throw another one". Eventually there will be to many balls.
It doesn't really matter if you hold down enter, or just use the program as you are supposed to be using it. Use a while statement instead.
Commented 16 years ago2008-05-04 04:47:32 UTC Comment #58622
potatis when the first case is true the break will stop analyzing the next cases, so since there is nothing alce to analyze after last case there is no point of adding another break; I know its not an elegant code it could be writed in many other ways but you wont run out of ram, this shit its like a big loop but its stoped by switch so it wont eat ur ram neither cpu.
Commented 16 years ago2008-05-04 07:45:10 UTC Comment #58625
U.
Commented 16 years ago2008-05-04 08:01:55 UTC Comment #58623
U
Commented 16 years ago2008-05-04 09:10:14 UTC Comment #58642
ME!
Commented 16 years ago2008-05-04 10:38:15 UTC Comment #58626
NO ME!
Commented 16 years ago2008-05-04 10:47:31 UTC Comment #58624
WHO?
Commented 16 years ago2008-05-04 11:18:46 UTC Comment #58640
If you enter the letter 'n' it will output this:
You shure?
Are you retard? you can only use N/Y!!!
Commented 16 years ago2008-05-04 11:45:28 UTC Comment #58627
n
Commented 16 years ago2008-05-04 12:26:07 UTC Comment #58635
n

So where do you program? On wordpad?
Commented 16 years ago2008-05-04 14:58:11 UTC Comment #58641
Don't use wordpad, use a plain text editor, like notepad or notepad++.
Commented 16 years ago2008-05-04 15:51:37 UTC Comment #58628
What? NO U!
Commented 16 years ago2008-05-05 02:47:49 UTC Comment #58614
zOMMFG CAPS LOCK MOST COMMENTED JOURNAL CUZ OF U!
Commented 16 years ago2008-05-05 02:55:17 UTC Comment #58629
NO U!

You must log in to post a comment. You can login or register a new account.