programming (1 Viewer)

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Yeah i like it, it's fun and challenging.
 

Dumbarse

Member
Joined
Aug 9, 2002
Messages
423
Location
BOS moderator & operator
fun and challenging?

u gotta be kidding me
stdio.h
if
else
scanf


its like learning arabic and then writing a 200 line C program, to run something that prints out 4 lines
useless dribble
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
i dont program in C, but i know wat u mean, u gott like it to enjoy it, so yeah, but it is logical.
 

-X-

Member
Joined
Aug 10, 2003
Messages
481
Gender
Undisclosed
HSC
N/A
Originally posted by Dumbarse
its like learning arabic and then writing a 200 line C program, to run something that prints out 4 lines
useless dribble
Code:
#include <iostream.h>

void main()
{
	cout << "First Line \n Second Line \n Third Line \n Fourth Line \n";
}
200 lines? :p
 

freaking_out

Saddam's new life
Joined
Sep 5, 2002
Messages
6,786
Location
In an underground bunker
Gender
Male
HSC
2003
Originally posted by -X-
Code:
#include <iostream.h>

void main()
{
	cout << "First Line \n Second Line \n Third Line \n Fourth Line \n";
}
200 lines? :p
i think he meant, to actually print out 4 lines on the printer...but then again, that couldn't b 200 lines either. :p
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
I love it. :D

Yes, you can do more things than print out 4 lines in 200 lines of code. You must be thinking of bloatware (MS's department :p ).

I prefer scripting languages nowadays, but I really should learn some C some day.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
It really depends on what you are doing and if it'll eventually grab your interest.

Which uni are you going to?

We did C this session too (UNSW COMP1721) and our two assignments were a handwriting recognition, and a (subset of) C compiler to MIPS assembly.

Both were very chanllenging and fun to do, especially the handwriting recognition assignment when you consider the real word uses of such technologies.
 

jm1234567890

Premium Member
Joined
Aug 18, 2002
Messages
6,516
Location
Stanford, CA
Gender
Male
HSC
2003
you can write everything in 2 lines if you wanted:

Code:
#include <iostream.h>
void main(){cout << "First Line \n Second Line \n Third Line \nFourth Line \n";}
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
Code:
#include <iostream.h>
int main(){for (int ii = 0; ii < 4; ii++){cout << "Line #" << ii << "\n"; return 0;}}
Allows for more than four lines. Follows Unix return-value conventions.
(It's pseudo Java, though. Do you dealloc vars in C++?)
 

Protector

a little unsane
Joined
Nov 20, 2003
Messages
174
Location
Sydney
Gender
Male
HSC
2006
C isn't so bad... I don't know why some people whinge about it. I mean... look at Delphi... THAT makes no sense (IMHO :p)
 

~Perfection

-Funked Up-
Joined
Oct 14, 2003
Messages
326
Location
Lost in Music
Gender
Female
HSC
2003
programming isnt that bad once you understand the language..

its very rewarding when the code works :D
 

freaking_out

Saddam's new life
Joined
Sep 5, 2002
Messages
6,786
Location
In an underground bunker
Gender
Male
HSC
2003
Originally posted by jm1234567890
you can write everything in 2 lines if you wanted:

Code:
#include <iostream.h>
void main(){cout << "First Line \n Second Line \n Third Line \nFourth Line \n";}
u've killed the joke. :p
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
Originally posted by sunny
It really depends on what you are doing and if it'll eventually grab your interest.

Which uni are you going to?

We did C this session too (UNSW COMP1721) and our two assignments were a handwriting recognition, and a (subset of) C compiler to MIPS assembly.

Both were very chanllenging and fun to do, especially the handwriting recognition assignment when you consider the real word uses of such technologies.
I, like sunny, did COMP1721 @ UNSW this year. I'm finding it fun, challenging and enlightening ...
 

jm1234567890

Premium Member
Joined
Aug 18, 2002
Messages
6,516
Location
Stanford, CA
Gender
Male
HSC
2003
Originally posted by ~Perfection
programming isnt that bad once you understand the language..

its very rewarding when the code works :D

It is also very frustrating when it doesn't work.
Then after 1/2 of testing you find you typed a "+" as a "-"
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by jm1234567890
It is also very frustrating when it doesn't work.
Then after 1/2 of testing you find you typed a "+" as a "-"
I think something that i overlooked and took me ages by slowly analysing it was accidentally having a variable named the same

like generally a For loop in VB would be

For i = 1 To 10

Next

and i was making a vowel checker and declared "i" as a variable, and my outputs for the number of "i"'s in the string was always screwed up lol it was funny but yeah it gets frustrating from silly mistakes.
 

jm1234567890

Premium Member
Joined
Aug 18, 2002
Messages
6,516
Location
Stanford, CA
Gender
Male
HSC
2003
you can't get that problem in java/C++

since you have to declare the variable in the for loop
eg
Code:
for(int i =0;i<50;i++){
  // do stuff
}
 

-X-

Member
Joined
Aug 10, 2003
Messages
481
Gender
Undisclosed
HSC
N/A
Originally posted by jm1234567890
you can't get that problem in java/C++

since you have to declare the variable in the for loop
eg
Code:
for(int i =0;i<50;i++){
  // do stuff
}
You dont have to declare the variable in the for loop.
e.g.
Code:
	int i = 0;
	for ( ; i < 5; i++)
              Do Stuff;
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top