C++ Help

6 replies [Last post]
officiallydead
Offline
Joined: Nov 2004
Posts:

So dear quake community i know there are many programmers around in here so i have gotten a question

#include <stdio>

#include <conio>

#include <time>

void anim(char *p);

void delay(long d);

void main()

{

char name[21];

printf("Γράψτε εδώ το όνομά σας (Όχι περισσότερους από 20 χαρακτήρες) = ? ");

gets(name);

anim(name);

}

void anim(char *p)

{

int i;

int posx[5]={3,3,70,70};

int posy[5]={2,20,2,20};

clrscr();

for(i=0;i<4;i++){

gotoxy(posx[i],posy[i]);

puts(p);

delay(2);

}

gotoxy(20,10);

printf("%s Καλώς ήρθες στον κόσμο της C \n",p);

}

void delay(long d)

{

time_t tim1,tim2;

tim1=time(NULL);

tim2=time(NULL);

while(tim2-tim1<d)

tim2=time(NULL);

}

Well thats the code it should be in the cpp file...but when i copy paste it the greek font (which is in bolt) becoms ???ööäö? shit...... grrr
is there any way to make it work? Using the old borland compilet Winking windos ofc not dos :PPP

thx in advance[/b]

Freakman
Freakman's picture
Offline
Joined: Apr 2007
Posts:
C++ Help

its just text which should be printed on screen so u can write it by yourself

Freakman:
do u want to beat freakman noob?
lestat:
no thx i have beaten many noobs

it is hard to be pro

hazo
HAZO's picture
Offline
Joined: Sep 2007
Posts:
C++ Help

Dunno about greek but with russian text there is some special add-code after libraries. After U write it U can write screen text on russian.

officiallydead
Offline
Joined: Nov 2004
Posts:
C++ Help

even in borland compiler i cant write the greek text....(should be same with russian font) and running afterwards the exe file it doesnt show the greek text Confused

i tried changing the font in borland but it didnt help..... i tried writing it in notepad with UTF8 code but i cant copy paste it the right way.... grr....

As i am noob in c++ Tongue how can i define the whole alphabet on my own?

Like

ä = α and so on??

#define what? Big grin

*GOM*
mancubius's picture
Offline
Joined: Jan 2007
Posts:
SE Sweden
C++ Help

lol kiku , they want you to write with greek characters ? that's lame ! In my uni we simply used greeklish on our projects and even in our final test I used greeklish in my paper sheets Big grin

I never tried to fix this so it seems I can't help =\

Freakman
Freakman's picture
Offline
Joined: Apr 2007
Posts:
C++ Help

there should be option in compilator for this

Freakman:
do u want to beat freakman noob?
lestat:
no thx i have beaten many noobs

it is hard to be pro

officiallydead
Offline
Joined: Nov 2004
Posts:
C++ Help

well if i wont be able to put greek characters in it ill use greeklish Tongue but it may be a pluspoint for me if i ll get it running with normal greek characters who knows Winking