Tuesday, November 24, 2009

[Cpp-Programming] C++ documentation

Hello,

I'm a noob in c++ programming, with a lot of willing to learn. First
of all, I managed to obtain more documentation than I can handle (all
kinds of tutorials and books). Amoung them, I have the Bjarne
Stroustrup's book, "The C++ Programming Language" (3rd edition). I
tried to assimilate it, but it works pretty hard on me, and sometimes
I have the impression that I cannot learn much from it. My question is
what to do in my case, if is there any other method to learn to code c+
+ in a more efficient way than reading all that pages? Did you read
the book? If yes, how many times?

Thanks!

--

You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

Friday, November 20, 2009

Re: [Cpp-Programming] dare2code??

hi everybody...
                       a very very sincere thanks to raja for helping me to make my blog look better.....such criticm is always valuable to me.....than u once again...
 
 
Regards,
Ashish
                    

--

You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=.

Wednesday, November 18, 2009

[Cpp-Programming] dare2code??

hi friends....
tired of coding "hello world" or anything like dat
stuff???if u want to see more and more good programs and wanna solve
it,den platform is surely going to help u....
http://www.ashish-chaubey.blogspot.com


view it and if u can code it,den send me ur name and where u live...i
will post ur programs wid ur name and ur place.....u can mail ur
answers to dare2code.ashish@gmail.com
ur comments,suggestions and ur criticism is dearly welcomed...

Thanks....

--

You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=.

Saturday, November 07, 2009

[Cpp-Programming] Re: Hi! There is an urgent question.




On Nov 5, 8:24 am, Niketa Pal <pal.nik...@gmail.com>
 
wrote:
> (1) What are the three required statements for every function in C++?
Ans: it is asked "required statements" :
            which literary means:
                a) Function declaration
                b) Function definition
                c) Function call.
and as far as syntax is concerned:
 
               a) give valid function name
               b) give a return type {it is good programming practice to use "void" even if function not returning anything}
                c)Take care about the ordering of formal arguments and actual arguments along with their respective data types.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en
-~----------~----~----~----~------~----~------~--~---

[Cpp-Programming] Re: Hi! There is an urgent question.

On Nov 5, 8:24 am, Niketa Pal <pal.nik...@gmail.com> wrote:
> (1) What are the three required statements for every function in C++?
>
1 return type
2 arguments
3 return // perhaps not required because void can be left out not sure
> (2) Name two reasons why programmers should be careful when using global
> variables.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en
-~----------~----~----~----~------~----~------~--~---

Thursday, November 05, 2009

[Cpp-Programming] Re: Looping to get user input causes infinite loop

Just a thought try apending '/0' to the expr that should let compiler
know that


On Nov 1, 1:57 am, james <james.herring...@tiscali.co.uk> wrote:
> Hi all,
>
> Please bear in mind i'm a complete novice when it comes to c! I'm
> building a program that gets input from the user. I am using scanf to
> get a line and then do some processing and this is working fine. The
> problem comes when I try to loop through this until the user enters
> 'quit'. It works fine the first time round but then just goes into an
> infinite loop. The code is below:
>
> while (1) {
>
> char expr[100] = {0};
>
> printf("Input Expression:");
> scanf("%[^\n]", expr);
>
> if (strcmp(expr, "quit") == 0) { return 0; }
>
> // do stuff here
>
> printf("\n");
>
> }
>
> This has been simplified by removing some extra code that processes
> the input however I don't think this is where the problem lies. I
> think it's something to do with the scanf but am unsure what. Any
> pointers greatly appreciated!
>
> Cheers,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en
-~----------~----~----~----~------~----~------~--~---

Wednesday, November 04, 2009

[Cpp-Programming] Hi! There is an urgent question.

(1) What are the three required statements for every function in C++?

(2) Name two reasons why programmers should be careful when using global variables.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en
-~----------~----~----~----~------~----~------~--~---

Sunday, November 01, 2009

[Cpp-Programming] Re: Looping to get user input causes infinite loop

scanf("%[^\n]", expr);

Not familiar with using regex in scanf.  Perhaps it isn't clearing (flushing) the input buffer when you read a string in that way?  Try adding
fflush(stdin);
just before that line.

However, note that, apparently, this is technically not the correct way of doing it...

Welcome to the world of C++, where there's a 'gotcha' for everything you could ever want to do, and a solution that "usually works, unless you did this, except in the case where that happens, unless..."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en
-~----------~----~----~----~------~----~------~--~---