| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> is there any way to launch emacs in a terminal or over ssh? <1> lonetron, yes <2> i used WSAEventSelect and i get an "unresolved external" error <2> wtf <1> Wondering, did you linke ws2_32.lib ? (or whatever it is) <2> mmm <2> let me check <1> lonetron, emacs works great in a terminal <1> I use it that way for hours every day <3> http://rafb.net/paste/results/dYuWLi56.html <3> logic prob <1> hard to say what's wrong with only that code <3> ok wait <3> http://rafb.net/paste/results/LAuST677.html <3> line 173 <3> the idea is :
<3> if the lettre is include in the word do not remove 1 chance <3> but if the letter is already used in the used letter,,,do not remove 1 chance <3> and i dont now how to write it for work <3> anyone have idea? <1> it looks okay to me <3> ok <3> :| <1> perhapsthe problem is elsewhere <3> ? <1> what you have checks if m6500_lettre is in neither string, which is what I Think you want, right? <1> m6400_lettre even <3> yes <3> if the m6400_lettre is in the 6400_mot_joueur et m6400_lettre_utilisee <3> et = and <1> ligne 97, c'est horrible :) <3> for what?? <3> im newbies... <3> ;) <1> well <1> fflush(stdin); <-- doesn't make sense <3> no? <3> :| <1> so here's something to ask yourself: are you null terminating the used letter string? <3> i dont undestand <1> well, all strings muyst be null terminated, right? <3> yes <1> well, for your used lteers you are keeping them in a string <1> where do you null terminate it? <4> the guy who can't do division is back! <1> that's me! <4> noi [ArKaNgE] <3> ok used letter dont have terminated char? <1> that's what it looks like to me <4> did you figure out why your division wasn't working [ArKaNgE] ? <3> dbtid yes <4> that's good <3> i change the *100 <3> ;) <4> you can do that if you want; or you could use the right types <3> float and not int <3> cn28h the prob with my if is not a no terminater used array... <1> are you sure? <1> where do you null terminate it? <3> look line 194 <3> is work <3> is or it's work in english? <1> yes, then you use i to overwrite the null character <1> "it works" <3> oh <3> it work <4> what's the code? <3> ok thanx <3> http://rafb.net/paste/results/LAuST677.html <1> dbtid, http://rafb.net/paste/results/LAuST677.html <3> i have prob whit if line 173 <3> with*... <3> i pratice C and english in same time <3> ;) <1> heheh <1> your english is pretty good, much better than my french <4> yeah unless you're on solaris, fflush(stdin) is pretty useless
<3> is hard to explain in english the problem that i have misery to say already in French <4> lines 86-100 would be easier to write as a do/while loop <4> actually, the whole function <3> ok <3> and for the line 173..you have idea? <4> everywhere you're p***ing pointers but you're not putting a value in make no sense that way <3> i tested && || != and == <4> void m7000_statistique(int *m7000_reussite, int *m7000_nbpartie) <4> from what i can tell, there's no need to p*** int * when just plain int will do <3> ok <4> line 126 is not really correct <4> you should multiply by 1.0 not 100 <3> no? ;) <4> then use 3.3, etc <3> ok <3> line 173... <3> in french is... <3> <3> if the lettre is include in the word do not remove 1 chance <3> <3> but if the letter is already used in the used letter,,,do not remove 1 chance <3> <3> and i dont now how to write it for work <3> in english is sorry <4> this is exceedling ugly <4> *exceedingly <4> c- bot strchr <4> c-bot strchr <5> dbtid, here you go: strchr - #include <string.h> char * strchr (const char *string, int c) Search Functions (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_5.html#SEC77 <4> what does "mot" mean? <3> mean? <3> what is mean... <6> m6400_lettre is not a integer <3> is a char <6> your trying to call strctr on a char <4> well, it's a char, and that's likely close enough <6> the function is strchr(const char *, int c) <6> not char); <4> yes, yes it is <4> but what happens when you invoke it with a char? <6> hes getting an error probably <4> (which by the way, happens to be an integer) <4> no <4> no he's not <4> [ArKaNgE]: what appears to be the problem? <3> for the first state of if strchr(m6400_mot, m6400_lettre) == NULL work <3> - 1 chance <3> but if the letter is already used...-1 chance <3> and if the letter is already used in used letter, i dont want -1 chance <4> well, cn28h already mentioned to you about not NUL-terminated your arrays <3> yes <4> if you're going to use strchr you best make sure they're properly terminated <4> why don't you do a <4> printf ("m6400_lettre_utilisee == '%s'\n", m6400_lettre_utilisee); <4> and the same for m6400_mot <3> but it work line 194 <4> it may seem to work; there's something wrong SOMEWHERE with the data; the code looks OK <3> ok <4> it'd be easier if this stuff was in english :) <3> hehe <3> i dont undestand how put a null char in the used letter <3> is the for <3> and what is this char for terminate string? <3> line 194 <4> a 0 <4> '\0' <3> 201 <3> ok <3> and strlen count the '\0'? <6> why do you keep flushing stdin? <3> mindsport? <4> no strlen does NOT count the '\0' <4> man strlen <6> fflush(stdin) for this is not needed <3> mindsport ok <3> but it is as its that I learned has the school, I am really beginner <3> i look the line 201 the if else...and I wonder why I have put 2 times the same instruction
Return to
#c or Go to some related
logs:
sambuca.ru
#linux #london #linux +writing an IE plugin madobor for_each c+++ stl #php #c #linux
|
|