C++ (1 Viewer)

Kupow pow

Member
Joined
Nov 27, 2003
Messages
38
Location
Here
Gender
Female
HSC
1998
hey pplz!! anyone have any info on C++ and da history of it, where it came from...and was it efficient, all da stuff bout paradigms 'n' building blocks???...are dere any good sites around??
 

Beaky

You can read minds?
Joined
Apr 5, 2003
Messages
1,407
Location
Northen Beaches Pos
Gender
Male
HSC
2003
I suggest you read the following textbooks on this chapter

"Sam Davis" and "Excel" Software Design and Development

These two textbooks have more than enough information to do well in your HSC
 

Kupow pow

Member
Joined
Nov 27, 2003
Messages
38
Location
Here
Gender
Female
HSC
1998
point being i need extensive info..but excel and sam davis should be good
 

Freedom_Dragon

The 36th Dragon
Joined
Oct 11, 2003
Messages
154
Location
Behind a door that will never open.
Gender
Undisclosed
HSC
N/A
Originally posted by Kupow pow
point being i need extensive info..but excel and sam davis should be good
I think SDD Excel should help u out. Its got lots of info.
If u can get ur hands on "Sam Davis SDD" and "SDD Excel" ull have a killer combination of 2 books.
 

Kupow pow

Member
Joined
Nov 27, 2003
Messages
38
Location
Here
Gender
Female
HSC
1998
hey anyone noe the pros and cons of functional, logic and object- oriented paradigms???
 

Freedom_Dragon

The 36th Dragon
Joined
Oct 11, 2003
Messages
154
Location
Behind a door that will never open.
Gender
Undisclosed
HSC
N/A
Originally posted by Kupow pow
advantages and disadvantages
Well id say,

Procedural Programming(imparetive programming)

Advantage:
-Uses up less storage space

Disadvantage:
-since the programming is low level, that is more codes written it is less productive. Note high level envolves less code need be written.

Logic Programming language (Declerative language)

Advantages
- It is easy to reason about the program, using logic that is facts and rules.
- Less lines of codes need be written, uses recursion ( function directly/indirectly calls upon itself). Is better than loops ( involves more lines of codes).
- In the approach to testing, logic uses less lines of codes (means
less testing and maintaining).

Disadvantage
- Slowness of execution, the INFERENCE ENGINE (Section of the
program that contains all the logic function) does all the processing. It is known that the computer is a "dumb piece of shit"
sorry about the language just want to state a point, and therefore without specified instruction from programmer, slow exection happens.

OOP

Advantage
-Well suited to development of GUI and Event driven programming( a type of programming that does not a linear/sequencial structure, but more like what happens as a result of an action eg:pressing a button).
- Well suited for RAD, fast development by using libraries of code.
- In the approach to testing OOP by nature are modular, easy testing and maintaing of individual module rather than a complete
program..... Oh man brain getting tired need rest...

Disadvantage
- Difficulty in using and understanding the libraries.

Function Programming

Advantage:
-Function can be reused.
- this type of programming good to develop and maintain large program consist of thousands of function, function dont have side effects ( returns one value/variables, these value/variables do not get altered or ...change).....need rest ...got to finish answer..
...and therefore is straightforward to fully sick... i mean test.

Disadvantage
- takes up more memory.

And i think that about it, or maybe theres more.

ZZzzzzz.
 
Last edited:

Kupow pow

Member
Joined
Nov 27, 2003
Messages
38
Location
Here
Gender
Female
HSC
1998
Originally posted by Freedom_Dragon

....
Function Programming

Advantage:
-Function can be reused.
- this type of programming good to develop and maintain large program consist of thousands of function, function dont have side effects ( returns one value/variables, these value/variables do not get altered or ...change).....need rest ...got to finish answer..
...and therefore is straightforward to fully sick... i mean test.

Disadvantage
- takes up more memory.

And i think that about it, or maybe theres more.

ZZzzzzz.
i thought funtional paradigms didn't have variables??
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Originally posted by Kupow pow
i thought funtional paradigms didn't have variables??
Where did you get that from? They do have variables, but they don't change.
 

Kupow pow

Member
Joined
Nov 27, 2003
Messages
38
Location
Here
Gender
Female
HSC
1998
Originally posted by sunny
Where did you get that from? They do have variables, but they don't change.
ma teacher...she said that functional paradigms assign statements....


hey anyone noe the latest version of C++
 

Freedom_Dragon

The 36th Dragon
Joined
Oct 11, 2003
Messages
154
Location
Behind a door that will never open.
Gender
Undisclosed
HSC
N/A
Originally posted by Kupow pow
hey anyone noe the latest version of C++
Ive noticed one thing and thats C++.
How come C++ is so popular in uni. So many students uses it[recommended by uni]

Its is quite ironic that so many students uses C++, since Java is said to be a more popular/widely used programming language.[internet created using Java etc..]
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Originally posted by Freedom_Dragon
Ive noticed one thing and thats C++.
How come C++ is so popular in uni. So many students uses it[recommended by uni]

Its is quite ironic that so many students uses C++, since Java is said to be a more popular/widely used programming language.[internet created using Java etc..]
C/C++ can teach many low level concepts other languages cannot teach.

Internet created using Java?!
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Java and C syntax are very similar. If you've programmed in both, what you'll find is that Java works just like C, without all the little fine details you have to watch out for.

A classic is memory management. In Java you have the garbage collector to free unused memory once all pointers referencing an object are no longer pointing to it. In C, memory management is a manual thing - you have to create and free everything yourself. Theres nothing stopping you from overwriting bits of memory all over the place if you've written your program wrong.

In terms of Java, what is an array? You might say something like a list of variables of the same data type. In C, an array is defined at a lower level; it is a pointer to the first element of the array.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Originally posted by Freedom_Dragon
They say that if u know C++ then u know Java.
So does it work vice verse. So if u know Java can that mean u know C++.
Probably not. Java is C with all the fine details that a C programmer could live without taken out. Java programmers take it for granted, and would have to learn it.

Its like knowing how to drive a manual means you can drive an auto, because you're actually doing the same thing with less work. It might not work the other way around.
 

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

Top