What do you mean by "better"?angelic_sedition wrote:Is c better for psp than c++?
Read This First: Learning How to Program
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Forum rule Nº 15 is strictly enforced in this subforum.
Re: Read This First: Learning How to Program
Advertising
I wanna lots of mov al,0xb
"just not into this RA stuffz"
"just not into this RA stuffz"
-
- Posts: 63
- Joined: Fri May 13, 2011 8:04 pm
- Location: Flatland
Re: Read This First: Learning How to Program
Are there advantages of using c as opposed to c++ or are they used for different things or does it not matter or?
Advertising
Re: Read This First: Learning How to Program
(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
"just not into this RA stuffz"
"just not into this RA stuffz"
Re: Read This First: Learning How to Program
Adding to this explanation, people recommend learning C before C++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.
Re: Read This First: Learning How to Program
can i proggram in my language? i mean Greek...
Re: Read This First: Learning How to Program
Well you can define instructions to do so.Howto wrote:can i proggram in my language? i mean Greek...
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;
}
-My Blog-
Re: Read This First: Learning How to Program
Not really, TiPi. Language reserved words still cannot be changed unless you modify the compiler source code.
I wanna lots of mov al,0xb
"just not into this RA stuffz"
"just not into this RA stuffz"
Re: Read This First: Learning How to Program
no, i tried this:m0skit0 wrote:Not really, TiPi. Language reserved words still cannot be changed unless you modify the compiler source code.
Code: Select all
/C++
#define hgr return
...
int main(){
hgr 0;
}
this because each define is a strings that is replaced with the define's value
Re: Read This First: Learning How to Program
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?
-
- Retired Mod
- Posts: 805
- Joined: Mon Sep 27, 2010 6:55 pm
Re: Read This First: Learning How to Program
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:
i used google translate for the greek, so meh
for example:
Code: Select all
int main()
{
//εξόδου γειά ελληνικού κόσμου στην οθόνη.
printf("γειά σου κόσμος στα ελληνικά!");
return 0;
}