| |
| |
| |
|
Page: 1 2
Comments:
<0> anyone can take a look at that piece of code? <0> void gravaagenda(lista *T,FILE *fp){ <0> lista *P; <0> P=T; <0> if(!P) remove("agenda.bin"); <0> else{ <0> fp=fopen("agenda.bin","wb"); <0> while(P){ <0> if(P->prox) break; <0> retorna(L,A); <0> fwrite(&A,sizeof(struct reg),1,fp); <0> P=P->prox; <0> } <0> fclose(fp); <0> }
<0> } <1> sigh. <0> when i read the file, i get the last notch of the Line FILO duplicated <1> then why do you show us the write loop? <1> also, why did you ignore the topic? <0> owww... i misunderstood it... <0> sorry... this kind of this is only at that site <0> soz <2> boneheads; who needs 'em <3> ah <3> thank you. <3> I am looking for a good book to learn c from <3> I already have K&R in my list, but my company agreed to pay for 2 books, so i am looking for another one <3> any idea's? <4> LibOpenJPEG.lib(tcd.obj) : error LNK2001: unresolved external symbol __ftol2 <4> what this link error is for? <1> the usual reason. <4> I'm using MS Vs 6.0 <4> like? <1> your linker cannot find __ftol2 in any libraries. <2> howdy twkm <4> how to fix it :o <1> Fma: tell your linker about the library where __ftol2 is implemented. <1> howdy dbtid. <4> well it was compiling fine I've just added a new library in linker <2> compiling != linking <4> exactly i was not getting any linking error <2> rotfl <4> rotfl?:S <2> once again, proof that use of a compiler should be licensed to people who know what they're doing. <4> hmmZ` <2> student licenses would be allowed, but only under the supervision of another licensed compiler user. <1> Fma: then perhaps you should remove the library. <2> perhaps he should read up on what compiling and linking are/do. <4> but I want to use that library <2> c-bot google compiler linker tutorial <5> dbtid, searching ... <5> ACM Intermediate UNIX Tutorial - Compilers, "http://www.cs.washington.edu/orgs/acm/tutorials/dev-in-unix/compiler.html" <5> C Programming Tutorial, "http://www.friedspace.com/CTutorial.html" <5> Win32 Tutorial - Free Visual C++ Command Line Tools, "http://www.winprog.org/tutorial/msvc.html" <4> its an open source jpeg2000 lib <5> LCC-Win32: A free compiler system for Windows Operating Systems by ..., "http://www.cs.virginia.edu/~lcc-win32/" <5> Parallel Compiler News | Tutorial-Reports.Com, "http://www.tutorial-reports.com/computer-science/parallel-compiler/news.php?PHPSESSID=860f8c83057d1159a4a3caeef163fca4" <2> hrm <1> Fma: then you must provide it with what it wants, which is __ftol2. <1> Fma: perhaps you need to train your linker about the proper order in which things be linked? <4> oh yes <4> wait <6> on linux an int and an long, on my machine have both 4 bytes, but I am reading in a book, Programming from the Ground Up that an ".int take up two storage locations for each number. <6> These are limitted to numbers between 0 and 65535. <6> " <2> tegramon: that's the MINIMUM <2> c-bot int <5> dbtid, here you go: type: int - size: 16 bits - range: -32768 to 32767 <6> so sizeof(int) is the minimum <2> so that would be for an unsigned int on such a machine <2> no <2> an int must hold AT LEAST -32768 to 32767 <2> it can be larger (and frequently is) <7> -32767\ <2> um
<2> yeah <2> c-bot's wrong i guess <2> i'll fix him <2> sigh <6> so an int can hold from 0 to 65535? unsigned int <7> yes, always <2> at MINIMUM <7> but it can really hold up to UINT_MAX <7> which might be larger <6> well, I am coding in ASM <8> and 128 bit long doubles don't work correctly with va_arg :D <6> and I wonder how much an .long would take, since the book says four storage locations <2> fixed <2> WHY would you ask in #c if you're coding in ASM? <1> tegramon: what is a .long? <6> because I also tried the sizeof(int) method to see how much it can hold <7> usually an int corresponds to a word, but I wouldn't depend on what C says if you are writing ***embly <1> tegramon: in c types don't have prefix characters. <6> i know, it was in asm <6> do C and ASM correspond? <6> in size of variables? <2> no <2> not necessarily <7> you talk about ***embly as if it were a single language <6> well, its the base language <2> no, it's not <7> it's an entire cl*** of languages <1> tegramon: there are hundreds of ***embly languages. <6> yeah, for different cpu's <1> hell, probably thousands. <2> possibly even thousands by now <2> :P <7> even for the same cpu <8> heh... try explaining that to my dad <6> for the same cpu? <2> sheep--: what?? <6> you dont mean like att and intel syntax dont you? <2> tegramon: different vendors do things differently <7> consider AT&T vs Intel syntax for x86 <1> sheep--: he still writes in autocoder? <6> its only syntax, that basis is the same <2> twkm: probably the Cyrillic equivalent of 1's and 0's <8> he does mainframe work exclusively... fortran, pl/1 or.. i don't even know the names of the languages <8> cobol! <1> ahh, hmm, ancient russian gear. i don't know any of it, i don't think, unless it was some of the stuff they copied from the us. <1> sheep--: yay mainframe! <8> :P <2> my cellphone has a mainframe in it :P <2> (at least, compared to mainframes in Soviet Russia :P) <8> oh boo-hoo <8> :P <2> heh <8> blame soviet russia, hehe <1> and it has an operator stationed at the console to tend to its every need. <6> cobol as far as i know was not created by the russians <2> but they were communists <8> according to my dad, russian mainframes were the slowest, but you could literally crumple the tape, and it would still read it just fine <6> good quality vs bulkyness i guess ... <2> DEC once held a party, when CD's first came out, where they served everyone's spaghetti dinner on CD's, to prove how tough they were. <2> then they took some of the CD's and showed they were fine <2> (rumor has it) <8> heh <8> i'm all for experiments, but i would've probably liked a plate without a hole in it <2> it was for the cheese <8> oh <2> (i was kidding) <8> ah <6> and what was on the cd's? <2> did you know the word gullible isn't in the dictionary? <8> :P <2> tegramon: Digital Unix I bet <8> i so did <8> anyone with gcc 4.1 and 128 bit long doubles wants to test some code for me? :\
Return to
#c or Go to some related
logs:
#chatzone #squid #c++ Another synaptic is running ati #linux #AllNiteCafe vc++ scanf
#AllNiteCafe #AllNiteCafe mygangbang
|
|