[c-prog] Re: help me, pls

2006-08-19 Thread alex_merlin_1985
me again,... :-( you told that I should use fgets(), but isn't fgets() for capturing from file? Anyway, I tried to use gets(), it worked, but when I type something, it displays me the chars like in console mode and all in the upper-left corner, they aren't displayed in graphics, it's just like

Re: [c-prog] Serious Newbie Seeks Compiler

2006-08-19 Thread Victor A. Wagner Jr.
At 20:31 2006-08-17, uvcceet wrote: I'm a hardware engineer. Did a lot of assembler coding a long time ago, and now just want to play with C and C++. I have grabbed the usual dummies books, and am not under any stress to become great tomorrow, which is good, because I am seeing that the tools I

Re: [c-prog] New to C...suggestions?

2006-08-19 Thread Victor A. Wagner Jr.
At 00:39 2006-08-18, Noctaire wrote: Been a while since I did much programming but I'm returning to the fold. :) I need to learn C/C++. I'm pulling out some old books I have in my library but I'm also looking for a good, solid tutorial -- book or even online (i.e., CBT). So, I thought I'd see

Re: [c-prog] Serious Newbie Seeks Compiler

2006-08-19 Thread Victor A. Wagner Jr.
At 00:00 2006-08-18, Sean Brewer wrote: uvcceet wrote: I'm a hardware engineer. Did a lot of assembler coding a long time ago, and now just want to play with C and C++. I have grabbed the usual dummies books, and am not under any stress to become great tomorrow, which is good, because I

Re: [c-prog] Help Needed

2006-08-19 Thread Victor A. Wagner Jr.
At 00:56 2006-08-18, mahendi_lakhani wrote: 1. What are the sizes in bytes of the following in different programming languages like C, C++, Java and on different Operating Systems like Windows and Linux/unix do your own research!! int signed int unsigned int long

Re: [c-prog] need programmes for beginers in c

2006-08-19 Thread Victor A. Wagner Jr.
At 08:40 2006-08-18, sujit das wrote: you may try turbo c++ compiler.It is easy to use. it is also very old (almost as old as I am, lol) and doesn't handle a lot of legal C++ stuff. I recommend that you do NOT use it. cmaruthiramakrishna [EMAIL PROTECTED] wrote: Hello andhrew i am maruthi

Re: [c-prog] Re: help me, pls

2006-08-19 Thread Brett W. McCoy
On 8/19/06, alex_merlin_1985 [EMAIL PROTECTED] wrote: you told that I should use fgets(), but isn't fgets() for capturing from file? Anyway, I tried to use gets(), it worked, but when I type something, it displays me the chars like in console mode and all in the upper-left corner, they aren't

RE: [c-prog] Re: Cannot loop this thing. Use fgets followed by sscanf

2006-08-19 Thread madhan
Hi, Better use fgets followed by sscanf. Ex: A sample program to use fgets main() { char input[10]; int num; printf(Enter the number : \t); If (fgets(input, 10, stdin) == NULL) { fprintf(stderr, Enter the proper input\n); exit(1); } sscanf(input, %d, num); (or)

[c-prog] getch function

2006-08-19 Thread Shashank kumar
Does getch function return two values if the input is a special character? -- -Shashank To unsubscribe, send a blank message to mailto:[EMAIL PROTECTED]. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ * To unsubscribe from this group,

Re: [c-prog] getch function

2006-08-19 Thread Brett W. McCoy
On 8/19/06, Shashank kumar [EMAIL PROTECTED] wrote: Does getch function return two values if the input is a special character? Which compiler? Which environment? getch() is not a standard function and is not available for all compilers (Turbo C++ uses it as part of its conio library, I think

[c-prog] Re: help me, pls

2006-08-19 Thread alex_merlin_1985
first I want to get done with this, and after that will move to the Visual C++... well, if you asked the code, the part that refers to my problem is: #include conio.h #include graphics.h void main() { int gd=DETECT, gm; initgraph(gd, gm, C:\\Borlandc\\Bgi); char key, name1[25];

RE: [c-prog] New to C...suggestions?

2006-08-19 Thread Noctaire
as I commented to another. Absent many many lines (10,000) of legacy C code, why learn C at all? for C++ I recommend the books listed at http://rudbek.com/books.html Isn't C the foundation for C++? Or are we talking another Pascal; useful as a learning tool but not much else? I have

Re: [c-prog] New to C...suggestions?

2006-08-19 Thread Brett W. McCoy
On 8/19/06, Noctaire [EMAIL PROTECTED] wrote: as I commented to another. Absent many many lines (10,000) of legacy C code, why learn C at all? for C++ I recommend the books listed at http://rudbek.com/books.html Isn't C the foundation for C++? Well, I like to think of C as the

[c-prog] Question on books....

2006-08-19 Thread Noctaire
Ok, thanks to those who referred me to the book list at rudbek.com/books.html. Question: What's the best bang for the buck on these books? There's a few hundred bucks in books and my budget is sorely limited (gone are the days I could just buy computer books, I'm afraid). I realize the site

Re: [c-prog] help...

2006-08-19 Thread Shishir Sharma
[snip] clock use time.hand try//psedu untested //i will send u the full code first send me ur code so that i can see urneed //and use borland 5.5 it is free ptime1= gettime()//player one start while(!kbhit()){ showclock()//userdefined } ptime2= gettime()// player one end // same for

[c-prog] Re: Help Needed

2006-08-19 Thread VENUGOPAL
For knowing the sizes of different data types .,u can use the sizeof() operator. Data type C C++ Java int 2 2 4 char 11 2 long44 8 float44 8 double88 16

[c-prog] books?

2006-08-19 Thread jagatece_2005
tell me a book on c which is highly in depth To unsubscribe, send a blank message to mailto:[EMAIL PROTECTED]. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]

RE: [c-prog] New to C...suggestions?

2006-08-19 Thread Victor A. Wagner Jr.
At 08:05 2006-08-19, Noctaire wrote: as I commented to another. Absent many many lines (10,000) of legacy C code, why learn C at all? for C++ I recommend the books listed at http://rudbek.com/books.html Isn't C the foundation for C++? define foundation but C has a lot of oddities that

Re: [c-prog] Re: Help Needed

2006-08-19 Thread Victor A. Wagner Jr.
At 00:10 2006-08-19, VENUGOPAL wrote: For knowing the sizes of different data types .,u can use the sizeof() operator. Data type C C++ Java int 2 2 4 char 1 1 2 long 4 4 8 float 4 4 8

Re: [c-prog] Question on books....

2006-08-19 Thread Victor A. Wagner Jr.
At 08:57 2006-08-19, you wrote: Ok, thanks to those who referred me to the book list at rudbek.com/books.html. Question: What's the best bang for the buck on these books? There's a few hundred bucks in books and my budget is sorely limited (gone are the days I could just buy computer books, I'm

[c-prog] Re: help me, pls

2006-08-19 Thread alex_merlin_1985
ok, first, this code will stay as it is, I won't move it to Visual, I just want to get done with it. Maybe after finished with this I will remake a totaly new version, but that's the future... Well, the purpose of this is to ask the player to type in his name (this will be a Five in a row

Re: [c-prog] Re: help me, pls

2006-08-19 Thread Victor A. Wagner Jr.
At 09:40 2006-08-19, you wrote: ok, first, this code will stay as it is, I won't move it to Visual, I just want to get done with it. Maybe after finished with this I will remake a totaly new version, but that's the future... Well, the purpose of this is to ask the player to type in his name (this

RE: [c-prog] Question on books....

2006-08-19 Thread Noctaire
I made up the list and I stand by my recommendation to read them in order. there's only one called a must have and it is. Accelerated C++ is the most coherent approach to learning the language I've seen in my career. Doesn't bog you down with stuff you don't need right away and actually

Re: [c-prog] Re: help me, pls

2006-08-19 Thread Brett W. McCoy
On 8/19/06, alex_merlin_1985 [EMAIL PROTECTED] wrote: ok, first, this code will stay as it is, I won't move it to Visual, I just want to get done with it. Maybe after finished with this I will remake a totaly new version, but that's the future... Well, it's likely you won't get much help from

Re: [c-prog] Question on books....

2006-08-19 Thread Tamas Marki
On 19/08/06, Noctaire [EMAIL PROTECTED] wrote: I made up the list and I stand by my recommendation to read them in order. there's only one called a must have and it is. Accelerated C++ is the most coherent approach to learning the language I've seen in my career. Doesn't bog you down with

Re: [c-prog] Question on books....

2006-08-19 Thread Paul Herring
On 8/19/06, Noctaire [EMAIL PROTECTED] wrote: I'm sure I'm sounding a bit dense here, so bear with me. No, since it was written after the standard was published. Remember you're learning a language, which is an abstraction, not an operating system. The standard library remained the same

RE: [c-prog] Question on books....

2006-08-19 Thread Noctaire
The libraries you're thinking about are the compiler/OS specific libraries. These (strictly speaking) have nothing to do with learning the core (Standard) language (plus libraries) which hasn't changed. Ok -- now I understand the difference. (Of course, now that I've ordered the book, I'm

Re: [c-prog] Question on books....

2006-08-19 Thread Brett W. McCoy
On 8/19/06, Noctaire [EMAIL PROTECTED] wrote: You are confusing the OS specific libraries and the standard library. The standard template library (abbreviated as STL) is uniform across all conforming compilers. It had no additions in the past years, in fact, the compiler support has been

Re: [c-prog] Question on books....

2006-08-19 Thread Brett W. McCoy
On 8/19/06, Noctaire [EMAIL PROTECTED] wrote: Depends on what you want to develop! If you are doing mainly command-line only text processing tools, you pretty much can do everything with the standard run-time libraries. If you want to get into networking, more advanced system programming

Re: [c-prog] getch function

2006-08-19 Thread andrew clarke
On Sat, Aug 19, 2006 at 06:28:42PM +0530, Shashank kumar wrote: Does getch function return two values if the input is a special character? getch() is non-standard, so it can return anything. The answer to your question is most likely in the documentation for your particular version of

[c-prog] Re: fputwc and gcc

2006-08-19 Thread Pedro Izecksohn
As my problem is Linux specific, (or may be it is distro specific), I'll move it to some other forum. To unsubscribe, send a blank message to mailto:[EMAIL PROTECTED]. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ * To