Random Homebrew: Dumbbell
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

Read This First: Learning How to Program

Forum rules
Any post not directly related to programming will be moderated.
Do not request people to code something for you.
Avoid posting messages that do not bring anything to the conversation. We want the threads in this subforum to stay focused.

Re: Read This First: Learning How to Program

Postby m0skit0 » Fri Jun 10, 2011 7:18 pm

angelic_sedition wrote:Is c better for psp than c++?

What do you mean by "better"?
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4784
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Postby 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:
angelic_sedition
 
Posts: 57
Joined: Fri May 13, 2011 8:04 pm

Re: Read This First: Learning How to Program

Postby 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"
User avatar
m0skit0
Guru
 
Posts: 4784
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Postby 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
ASKidwai
 
Posts: 1411
Joined: Mon Jan 10, 2011 7:42 am
Location: 'Ere and There

Re: Read This First: Learning How to Program

Postby Howto » Sun Jun 12, 2011 2:39 pm

can i proggram in my language? i mean Greek...
Howto
 
Posts: 99
Joined: Thu May 12, 2011 12:03 pm

Re: Read This First: Learning How to Program

Postby 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-
TiPi
Retired Mod
 
Posts: 1033
Joined: Tue Sep 28, 2010 5:32 am

Re: Read This First: Learning How to Program

Postby 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"
User avatar
m0skit0
Guru
 
Posts: 4784
Joined: Mon Sep 27, 2010 6:01 pm

Re: Read This First: Learning How to Program

Postby 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
leojava
 
Posts: 73
Joined: Mon Feb 14, 2011 6:59 pm

Re: Read This First: Learning How to Program

Postby 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?
Howto
 
Posts: 99
Joined: Thu May 12, 2011 12:03 pm

Re: Read This First: Learning How to Program

Postby 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.
ultimakillz
Moderator
 
Posts: 1000
Joined: Mon Sep 27, 2010 6:55 pm
Location: Texas, USA

PreviousNext

Return to Programming

Who is online

Users browsing this forum: kakarotto and 2 guests