| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> in the end i want to create a game thats full of sick complicated programming <0> voice input :P <0> and output <0> and text creating and recognition <1> Then... see you in 100 years ;) <0> tup <0> yup <0> if i only do the programming :) <0> not other stuff like sleeping and eating <0> or working <2> Debugger thanx for you time :) ... books and tutorials...and "Help me god".... ;) <2> bye <3> could somebody help me please? i would like to compare two strings, but it doesn't work when there are spaces in the strings <3> i don't know what to do <4> I'm not sure I understand your question <4> std::string foo = "World"; std::string bar = "Hello";
<4> true == (foo != bar) <3> i don't know <3> if (one==two) <3> { <3> cout << "Right!"; <3> } <3> like this <4> I suspect you're having a problem with reading in <4> rather than actually comparing <4> *and goes back to his reading* <3> hm, ok <5> how do i set more than one conditions to a if case? <3> else if <5> i mean like <5> if (x==1) and (y==2){ <5> how is the right sintax? <3> maybe && <6> hi to all! <6> im searching some info about connecting c++ to a database... anyone can help me? <7> what type of database and what operating system? <6> i would like to use mysql... but im at the start of my project so i can choose another (the simplest) <8> probose: if (x == 1 && y == 2) { } <6> op winxp <5> see my code please <5> x = 11 <5> primo = x <5> if ((primo != x) || (primo != 1) && (x%primo == 0)) <5> the program is taking the if, why? <8> That code likely is wrong. <8> primo is != 1 <5> i know <8> and 11%11 is 0. <5> but then, it removes 1 from 11 <5> remove 1 from x <5> wait i'll host it in my website <8> ok, so x is 10 then. 11 is != 10. <8> Note that && has higher precedence than ||. <7> ignos: there is a mysql C++ library that provides functions for accessing mysql <7> look around on mysql.org for it, i know it works in linux, but I would ***ume it works in windows as wel <7> well <9> _m_ logical operators benath in them has the presedence actually ? <8> mysql++ ****s. <8> huh? <9> <8> Note that && has higher precedence than ||. <8> calc msg <10> msg = If you have a question then ask it, if you want to discuss a topic, then do it. Asking us "Can I msg you?" or sending unsolicited private msgs is unwanted; asking in the channel shares the answer with all! <8> Yes, I said that. <6> i have readed mysql.com <6> im using devcpp <8> probose: try the site mentioned in the channel topic. <6> but i cant compile the examples <9> Logical operators have the presedence against each other ? <8> No, they don't. <9> so you said && has presedence against || <8> Yes. <8> Err, I misunderstood your last question. <6> www.mysql.org speaks about a connector ... mysql++ <9> oh, nop. <6> its an archive <8> Yes, logical operators have different precendence.
<6> with some .h and .a files <9> ok, ty. <6> e some examples <6> .cpp files <8> (from high to low precendence): & ^ | && || <6> but cant compile... <6> i tried linking all the libraries... <9> I see. <6> im desperate... :( <9> ignos <6> yes <9> just explore the opening connection with msql there would be resources at refrence web sides. <6> reference web site is www.mysql.org? <7> yes <6> :( i have found this: contributed apis : MySql++ <6> http://tangentsoft.net/mysql++/ <7> did you even read that website? <6> yes i have read... but im italian and im not very good with english...:( <6> so <6> in http://tangentsoft.net/mysql++/ can you suggest me what i must download? <11> you're ****ed <6> thx <11> any programmer needs to at least be able to read english <6> i can read... but im not an expert <9> ignos there is MSDN examples how to connect a database, retrieveing data etc. <9> i advise look for MSDN resources first of all. <6> perfect.. im looking <6> however... nobody has never utilized a connection to a database (not only mysql)? <12> i've got a situation where a cl*** is instantiated, and some characteristics of it are established at that time, the cl*** is then using a static instance of a linked list to enforce the fact that it is the only table with those characteristics, does that appear to anyone else to be a strange way of working? <12> i can't help but think there should be some manager cl***, whose job it is to enforce that <12> wouldn't it be more normal to define an == operator, and store the objects in a set to enforce this "one and only" type behaviour for example? <12> am i making sense? <13> kinda <13> but i'm still at n00b level.. so i dont know :P <13> oh.. btw ... hi earthworm :) <12> ay up <14> hey ppl, the biggest number that a int can hold is 2147483647 right? <15> no, it's std::numeric_limits<int>::max() <12> it just seems like misplaced responsibility to me, an object that makes sure there are no other objects with the same attributes? <16> integer u mean? <17> earthworm you mean like the singleton pattern which makes sure there aren't any other of the "same" instantiated <12> vawjr: sounds rather like that yes, although i haven't seen that particular pattern <18> btw, std::set doesn't use operator == <12> oh aye, it uses < doesn't it? <18> so what problems are you trying to solve, you have us a solution that you don't like <18> yes, it uses < <18> hmmm, we've got to get into town, gonna have to run <12> bugger <2> hello...me again <12> have a good un' <18> back in a few hours <12> okie doke <2> Debugger could you pease ***ist me again? ... I have written a cl*** and a test for it -> http://cosminr.home.ro/code.txt <2> or anyone else <2> the error I get: <15> why are you calling 'delete this' in the destructor? <2> Undefined symbol cerc:cerc() in module TEST.CPP <15> the destructor is called when the object gets destroyed <2> to delete the current object <15> i guess you need to learn C++ first <2> ... <2> but any solution to the errors I get ? <15> int getRadius(); ... int cerc::geetRadius(){ <12> you removed the definition of cerc::cerc(int) <15> and main doesn't return void.. what kind of crap place are you learning C++ from? <2> undefined symbol for ~cerc() , cerc() and getRadius() <15> stdio.h is a C header file, not C++ <2> ok...replaced stdio with iostream and printf with cout <2> still same error <19> *sigh* <19> Trial and error is *not* the way to learn C++. <19> Or to debug.
Return to
#c++ or Go to some related
logs:
#ubuntu ebookwise linux #linux #networking #linux #linux #linux parjos wakeboardgrl
vsftpd how to enable passive
|
|