@# Quotes DB     useful, funny, interesting





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



Comments:

<0> SecretSquirr: VNC - share the window only
<0> (@dbtid): no it's the whole thing AFAIK
<0> dbtid: With UltraVNC you can send just one window / application
<0> WinVNC server - "Single Window Sharing"
<0> [ ] Share only the Server Window Named ___________________
<1> I have a structure that holds movie information in it (isbn, title, quantity, etc..), and whenever I get the inputs for isbn and title, for some reason ISBN holds both isbn and title together. how can i fix this?
<2> they are both strings?
<1> yes
<2> are you sure the isbn string is null terminated correctly?
<1> im not sure
<2> how long is the ISBN?
<1> 30
<1> ISBN is 10
<2> how big is your char array?
<1> can i show you the struct code?
<2> sure, stick it on the paste site



<1> http://rafb.net/paste/results/lcF89q50.html
<2> yeah, your ISBN array is too short
<2> char ISBNumer[11
<2> ]
<2> (you need space for the null terminator
<2> )
<1> oh boy
<1> i feel retarded
<1> :P
<1> i need some help with comparing inside a structure
<1> http://rafb.net/paste/results/e7iHOC12.html
<1> how can i copy a string inside a struct to a single char array? i need it for comparing...
<1> anyone?
<3> strcpy() is a decent way to copy strings, ***uming you are careful about buffer sizes.
<0> dbtid: http://www.amazon.com/gp/product/B000BTC5LW/002-6025598-9762431?v=glance&n=130
<4> hi
<4> i have question...
<4> ;)
<4> http://rafb.net/paste/results/4qERc219.html
<5> Maybe scanf("%c", m6200_lettre+2);
<4> for what whit scanf the entry not work whit my table lettre...
<4> +2...
<4> ok
<4> lol is work...
<4> thank you and sorry for my bad english
<6> arkange, did you understand why?
<4> no
<4> adress + 2...ok
<6> spn, thanks for the usefull answer.
<6> what is m6200_lettre[2] ?
<4> 3 case of tab...
<6> its a char.
<6> what is m6200_lettre ?
<4> in french "pointeur"
<6> yes. a pointer to char.
<6> what is m6200_lettre + 2 ?
<4> I believed that it was the same
<6> ;-)
<6> no
<4> m6200_lettre[2] or m6200_lettre + 2
<5> m6200_lettre+2 == &m6200_lettre[2]
<5> *(m6200_letre+2) == m6200_letrre[2]
<4> oh thanx
<5> de rien.
<6> arkange, what you do math with a pointer, its still a pointer.
<4> ok
<6> arkange, m6200_lettre[2] is a char. if you want to pointer to this char you need to use &m6200_lettre[2].
<6> to/the
<4> and for what ?m6200_lettre[2]
<4> ok
<6> as spn said, m6200_lettre+2 == &m6200_lettre[2]
<4> m6200_lettre is a pointer and m6200_lettre[2] is char..
<4> is very hard pointer for novice..
<4> for me :)
<5> c-bot pointers
<7> spn, here you go: Pointer Tutorial: http://pw2.netcom.com/~tjensen/ptr/cpoint.htm
<4> ok thanx
<8> Let's say I have to #define'd terms. STRINGA and STRINGB. I want to declare a char array that's both strings concatenated together. char[array] = STRINGA+STRINB; I don't suppose this is possible is it?
<4> strcat?
<4> sorry im novice
<8> that would be one way to do it I think. I think there's an easier way though



<8> I'm a novice as well
<8> maybe I should just use c++
<8> arkange: thanks I guess I'll just strcat
<3> ritalin: if it's #define STRINGA "foo" and #define STRINGB "bar" you can do char x[] = STRINGA STRINGB;
<8> ah. Okay that's what I want to do. Thanks Xirtam
<8> works like a charm :) awesome. thanks again
<9> ;)
<10> hi all
<10> i have a problem
<10> i hate pointers
<10> but
<10> i need to convert a char *text[100] to char text_n[100]
<10> if u understand what i mean
<10> please help
<11> that doesnt make a whole lot of sense
<10> i mean like this
<10> char *t1="blah"
<10> i want to copy the "blah" text to char t2
<10> cause i need to modify that text
<11> are they both pointers?
<11> ah it dont matter
<11> strcpy (array, pointer);
<10> no.. the t2 variable it's not a pointer
<12> what's the difference between char a[1] and char* a; ?
<12> ppl seems to use it in structures
<12> to store names
<10> a[1] it's the character from the position 1
<11> the first is an array with one element, the other is a pointer
<10> or that
<12> static3d_, yep, I know that, but why people prefer it in structures to store names, instead of using a pointer?
<11> thats very bad programming practice
<11> they are writing past the bounds of the array
<11> instead of allocating memory for the pointer
<12> yep ... and seems to use the structure as an union with a char buffer[] large enought to handle that overflow
<11> strange, and seems pointless to me
<12> if i have a structure like this:
<12> struct x{
<12> int i;
<12> byte name[1];
<12> }
<12> i'll have an overflow everytime I write more than 1 char to name
<10> hey static3d_
<10> thanks
<11> well thats not too surprising jos8cal
<12> why not use a byte* name;
<12> malloc(),write(), free()
<12> i dont get it
<11> i've seen it done lots, never understand the logic behind it
<12> there must be a trick in using byte name[1]
<11> i read about it in the C FAQ i think, and they said its bad
<12> happens to have the link?
<11> nah sorry, google it
<12> ok, thanks
<11> http://kbs.cs.tu-berlin.de/~jutta/c/c-faq/c-9.html#9-7
<11> there u go
<13> how can i use *.mnx files into a fox pro source file *.prg?
<12> static3d_, thanks a lot
<11> np
<13> how can i use *.mnx files into a visual fox pro source file *.prg?
<11> asdflj this isnt a foxpro channel
<13> hm
<13> thx
<14> is there a way to make gcc search "dir" for include files by default instead of having to do -I"dir" all the time? I tried man page and google but couldn't find the answer
<15> you write a Makefile that does this instead of calling gcc directly
<16> greetings
<15> hi
<16> i don't recall: does GCC have any environment variables it searches?
<16> yes, it looks at CPATH
<16> info gcc for more information if you have info installed
<16> not recommended for longterm use
<16> do it to get it working, then do as stefanf says and write a Makefile
<17> Hey guys, is there a way/function to open an image file, resize it, and output - to create a thumbnail
<16> of course there is "a way" -- write it yourself
<16> there may be library's that do it; certainly none in the Standard


Name:

Comments:

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






Return to #c
or
Go to some related logs:

#mirc
ppp0 ip adress
canadian cowgrils
long turds
psybnc +check uptime
#skype
#apache
#linuxhelp
#MissKitten
martin_uk



Home  |  disclaimer  |  contact  |  submit quotes