dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

DirectX izmantoshana C++ videe - kur ir kada pamaciba ?
Goto page Previous  1, 2
 
dev.gamez.lv Forum Index -> Iesācējiem
View previous topic :: View next topic  
Author Message
estetique



Joined: 02 Oct 2008
Posts: 20
Location: Riga

PostPosted: Fri Oct 10, 2008 10:12 pm    Post subject:

C++ definejot string, char vai vel sazin ko, viss iet "saadas" peedinjaas Laughing
Taa kaa - kads te sakars ar C++ ?

Un par to topika vietu - nekadu problemu .. taa arii ir - neesmu nekads profs sajas lietaas ( game programming un C# ) tapec .. lai nu tad tiek ari parejiem Cool
_________________
Pirms keries pie programmeshanas - noperc rezerves smadzenu paari .. noderees Very Happy
Back to top
View user's profile
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Oct 10, 2008 10:28 pm    Post subject:

estetique wrote:
C++ definejot string, char vai vel sazin ko, viss iet "saadas" peedinjaas :lol:
Taa kaa - kads te sakars ar C++ ?

Tev nav tiesa. Čaru definē apostrofos - 'c'.
Sakars te ar C++ tāds, ka tur ir tieši tāpat:
Code:
char ch = 'c'; // apostrofos '
std::string s = "strings";

Čaram lieto apostrofus, bet stringam dubultās pēdas. Un ja jau tu apgalvoji, ka C++ pamatus māki, tad es ļoti brīnos, ka C#'ā tev tam aizgāja "kāda stunda".
Back to top
View user's profile Send e-mail
estetique



Joined: 02 Oct 2008
Posts: 20
Location: Riga

PostPosted: Fri Oct 10, 2008 10:33 pm    Post subject:

Nu tada gadijuma man jaasak domaat, kaadu C++ esmu maaciijies jo tur definejot charu ar "c" viss stradaja perfekti Laughing
_________________
Pirms keries pie programmeshanas - noperc rezerves smadzenu paari .. noderees Very Happy
Back to top
View user's profile
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Fri Oct 10, 2008 11:51 pm    Post subject:

kā tad viņš tev tur perfekti varēja strādāt?

man:
: error C2440: 'initializing' : cannot convert from 'const char [2]' to 'char'

lietoju VC2005
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Display posts from previous:   
dev.gamez.lv Forum Index -> Iesācējiem All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group