Advertising (This ad goes away for registered users. You can Login or Register)

Read This First: Learning How to Program

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Post by m0skit0 » Fri Jun 10, 2011 7:18 pm

angelic_sedition wrote:Is c better for psp than c++?
What do you mean by "better"?
Advertising
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

User avatar
angelic_sedition
Posts: 63
Joined: Fri May 13, 2011 8:04 pm
Location: Flatland

Re: Read This First: Learning How to Program

Post by angelic_sedition » Fri Jun 10, 2011 8:11 pm

Are there advantages of using c as opposed to c++ or are they used for different things or does it not matter or? :oops:
Advertising

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Post by m0skit0 » Fri Jun 10, 2011 9:10 pm

(Almost) Every programming programming language has pros and cons. Specifically C and C++ are quite different despite the name. C is imperative while C++ is object-oriented. They're two different worlds of programming, but each has good and bad sides.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

ASKidwai
Posts: 937
Joined: Mon Jan 10, 2011 7:42 am
Location: 'Ere and There
Contact:

Re: Read This First: Learning How to Program

Post by ASKidwai » Fri Jun 10, 2011 9:24 pm

m0skit0 wrote:(Almost) Every programming programming language has pros and cons. Specifically C and C++ are quite different despite the name. C is imperative while C++ is object-oriented. They're two different worlds of programming, but each has good and bad sides.
Adding to this explanation, people recommend learning C before C++
Image
Image
Image
Image

Howto
Banned
Posts: 70
Joined: Thu May 12, 2011 12:03 pm

Re: Read This First: Learning How to Program

Post by Howto » Sun Jun 12, 2011 2:39 pm

can i proggram in my language? i mean Greek...

TiPi
Retired Mod
Posts: 740
Joined: Tue Sep 28, 2010 5:32 am
Contact:

Re: Read This First: Learning How to Program

Post by TiPi » Sun Jun 12, 2011 3:03 pm

Howto wrote:can i proggram in my language? i mean Greek...
Well you can define instructions to do so.
Example:

Code: Select all

#include <stdio.h>
#define ihaz int
#define showmeh printf
#define gimmegimme scanf
#define kbbai return
#define iz if
#define iznah else
#define areustilltherelol getch
ihaz main(){
ihaz agepl0x;
gimmegimme("%d", &agepl0x);
iz(agepl0x < 18){
          showmeh("PAEDO!!!!");
}
iznah{
          showmeh("KK");
}
areustilltherelol();      
kbbai 0;
}
You can change all words to w/e you want, so yeah, you CAN code in greek..if you define all instructions you need first. :P
Problems or questions? Feel free to contact me.
-My Blog-

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Post by m0skit0 » Sun Jun 12, 2011 3:26 pm

Not really, TiPi. Language reserved words still cannot be changed unless you modify the compiler source code.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

leojava
Posts: 46
Joined: Mon Feb 14, 2011 6:59 pm
Contact:

Re: Read This First: Learning How to Program

Post by leojava » Sun Jun 12, 2011 8:10 pm

m0skit0 wrote:Not really, TiPi. Language reserved words still cannot be changed unless you modify the compiler source code.
no, i tried this:

Code: Select all

/C++
#define hgr return
...
int main(){
 hgr 0;
}
and it compiled and worked well.
this because each define is a strings that is replaced with the define's value ;)
Image

Howto
Banned
Posts: 70
Joined: Thu May 12, 2011 12:03 pm

Re: Read This First: Learning How to Program

Post by Howto » Sun Jun 12, 2011 9:20 pm

either i didnt explained well my question, either i didnt understand your answers... i asked: can i write a proggram in my language(that is Greek)? i mean is English the only language that you can write a proggram?

ultimakillz
Retired Mod
Posts: 805
Joined: Mon Sep 27, 2010 6:55 pm

Re: Read This First: Learning How to Program

Post by ultimakillz » Sun Jun 12, 2011 9:36 pm

as TiPi and m0skit0 said, you can use define instructions to change certain words (other than the reserved words m0skit0 linked to), but you can code all the variable names, output, comments, etc. in your native language as those do not matter to the computer. only reserved words must be in english, all others can be in any language you like.

for example:

Code: Select all

int main()
{
    //εξόδου γειά ελληνικού κόσμου στην οθόνη.
    printf("γειά σου κόσμος στα ελληνικά!");
    return 0;
}
i used google translate for the greek, so meh :lol:
"Thanks to all you gays i am leaning allot" src
Which Linux Distro is right for me? Take A Quiz & Find Out or Compare Major Distros.

Post Reply

Return to “Programming and Security”