@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> C allows you to shoot yourself in the foot if you so choose.
<1> as do i
<0> how nice of you.
<1> there is no reason to not shoot yourself in the foot if you don't not choose to avoid doing so
<0> indeed.
<1> and i mean it
<1> maybe
<2> *g*, you can always shoot yourself in the foot\, just becouse, some1 was claiming that it is std unloaded pistol
<3> what does "two or more data types in declaration of 'root'?
<3> mean ?
<3> could you look at new version?
<3> http://fatcat.ftj.agh.edu.pl/~kfsz/oneway4.c
<4> ;
<4> at the and of line 8
<3> thanks
<4> and put line 10 into the main()



<3> could you look at updated file?
<3> now it seem to work
<4> the same?
<3> what do you think?
<4> the same link?
<3> yes
<3> refresh please
<3> I'm trying to update after more important changes
<1> that's just totally broken
<3> what do you mean?
<4> and put line 10 into the main()
<4> root->next=NULL;
<3> but it's beyond //?
<3> is it necessary?
<1> "if(root==NULL) root=new; else{
<1> ...
<1> root _is_ NULL
<1> you haven't ***igned any other value to it
<3> yes
<3> isn't it right?
<1> think about it
<3> I recon it's correct
<3> isn't it?
<1> when is the else clause going to be executed?
<3> thanks
<3> if root!=NULL
<3> but *root=NULL
<3> at 9-th line
<1> yes?
<3> ?
<3> at the beginning
<3> *root=NULL
<1> what do you mean
<3> but later it will point sth
<1> at the first if it won't
<3> so what's the result of expression root==NULL at the beginning?
<4> false
<1> it's true
<1> look,
<1> you have
<1> struct element *root=NULL
<3> yes
<1> and before the if there's no other value ***igned to "root"
<1> what else could it be?
<3> so, then
<3> root==NULL
<3> ?
<1> right
<3> so it's correct?
<1> well that depends on what you wish to accomplish
<0> it's not illegal.
<3> the program is to add new element to the list
<1> the else clause of "if (root == NULL) ..." will not be executed
<1> ever
<3> yes
<1> and therefore...?
<1> (what happens?)
<3> but I'm going to make function
<1> then why do you post incomplete code?
<3> sorry
<3> I try to do it step by step



<1> well the first step is definitely broken
<3> which?
<1> look
<3> do you have any advice how to simplify this code?
<1> trace it on a paper
<3> ;)
<1> i mean it
<1> your code is very very broken
<3> so, what do you reccomend for me?
<3> is bvariable put in main global or local?
<1> to do it right
<3> what's the most imoportant?
<1> new->field=i; <- this
<1> if(list->field>i) <- this
<1> while(list->next!=NULL) <- this
<1> new=list->next; <- this
<1> if(list->next==NULL) <- this
<1> for starters
<3> waht's wrong with these?
<3> sorry for misspeslling but I've got slowa connection
<1> oh the first one is correct
<1> but for the rest: list has not been given any value
<3> what do you mean?
<1> what do i mean?
<1> there's no statment of the form
<1> list = something
<3> yes
<3> list is ponter
<3> msg Xebord
<3> sorry
<4> ;-)
<1> so, list is a pointer, thus it should automatically ***ume some value?
<1> that is, what does it point to?
<3> let me think
<3> ...
<3> oh yes
<3> thanks
<1> so what does it point to?
<3> please wit
<1> no no; before you change it: what does it point to?
<3> you can see result
<1> but i need you to tell me
<3> please wait
<3> ok,code is almost finished
<0> without chemicals he points.
<3> list pints current element of ist
<3> what does "conflisction types ofor 'remove' mean?
<3> sorry form misspelling
<1> what's your guess?
<3> that's the one error I dont't undestrat
<3> d
<3> understadnd
<1> why not?
<1> if there's a type conflict, then there are invalid types being used
<3> ok
<3> it seems to work
<3> :)
<1> i predict it won't
<3> why?
<1> have you tested it with more than one item?
<3> no, I will
<3> it works frp 3
<3> so
<3> it seems to be ok
<3> ok, you can see the result
<1> ok
<3> do you have any advices for me?
<1> not without seeing the working code
<3> actually it works
<3> how to avoid worngings during compilation?
<5> hello
<6> good morning...
<7> moin


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c
or
Go to some related logs:

#worldchat
#worldchat
#worldchat
#gentoo
mora_34
3385650295
#worldchat
#juventus
#worldchat
#metal



Home  |  disclaimer  |  contact  |  submit quotes