Monday, August 03, 2009

[Cpp-Programming] Re: question

I have never used miracle C either, but for Windows you can't beat Visual Studio Express.  Technically, it's an IDE, but it comes with Microsoft's C++ compiler, and best of all it's free (and several orders of magnitude easier to use than Cygwin if you have no prior experience with Unix).

Also, loops and arrays in C work in exactly the same way as they do in Visual Basic, though arrays are considerably more complex and dangerous in C.  In general, Visual Basic is a much safer and easier-to-understand language than C, despite what diehard Unix-fans will tell you otherwise.

Finally, there are free C/C++ tutorials all over the Internet, and even several free books.  Check them out!

--~--~---------~--~----~------------~-------~--~----~
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: question

Joe,

I have not used Miracle C, so I can not offer any advice on that
particular compiler. If you are on Windows, I would personally suggest
installing Cygwin (http://cygwin.org/) in order to get a Bash shell
and a quasi-Linux environment in which you can utilize make and gcc.
My reasoning for this is in the flexibility the shell can provide as
you become a more experienced developer, however it is not necessary
to get started.

As for the book, I have not read that one in particular, but I did
have a C++ book by Sam's Publishing that was quality.

It is not odd to find C more sensible than Visual Basic. At risk of
offending someone on the groups, Visual Basic is a garbage language
while C is considerably more powerful and structured. This makes C
mentally more logical and easier to process.

Here are some additional resources you will find useful.

For API references: http://www.gotapi.com/

For learning by example and code snippets: http://www.google.com/codesearch

A code snippet repository: http://snipplr.com/

Other C resources: http://www.cprogramming.com/


Welcome to the universe of C programming!

David

On Mon, Aug 3, 2009 at 5:16 PM, joe_G<joe2324@gmail.com> wrote:
>
> I'm pretty new to programming and I was looking to learn C programming
> on my own, but I had a few questions. I've been using Miracle C as my
> compiler and it seems to be working great. Is this a good compiler?
> Also, is it normal to find C easier than visual basic? I did not like
> visual basic, especially loops and arrays, but they seem to make more
> sense in C. Anyway, I just purchased a book and I was wondering if
> someone could tell me if its worth it.
>
> http://www.amazon.com/Absolute-Beginners-Guide-Other-Sams/dp/06723051...
>
> 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
-~----------~----~----~----~------~----~------~--~---

[Cpp-Programming] question

I'm pretty new to programming and I was looking to learn C programming
on my own, but I had a few questions. I've been using Miracle C as my
compiler and it seems to be working great. Is this a good compiler?
Also, is it normal to find C easier than visual basic? I did not like
visual basic, especially loops and arrays, but they seem to make more
sense in C. Anyway, I just purchased a book and I was wondering if
someone could tell me if its worth it.

http://www.amazon.com/Absolute-Beginners-Guide-Other-Sams/dp/06723051...

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
-~----------~----~----~----~------~----~------~--~---

Saturday, August 01, 2009

[Cpp-Programming] Re: doubt in c++



On Thu, Jul 30, 2009 at 9:51 PM, cooldude<srivatsak.s@gmail.com> wrote:
>
> hi,
>
> i'm pretty new to c++. i have got a simple doubt. please answer.
>
> i have a class called square.
>
> class square
> {
            void sum();

> //some implementation here
> }
>
> now when i write the main program i create the object. here is where
> i'm confused. i feel i can create the object square in two ways. let
> me know if i'm correct.
>
> square obj_sqr1; // this is one way
>
> square* ptr_square;
> ptr_square = new square ; //  using the new operator, forgive me if
> the syntax is wrong
>
> what is the difference between the two ? are they same ? ..

ans: their internal representation in the memory is same
but when we code thier syntax is very different.
say e.g when calling a member function
square obj;
square *ptrobj;
ptrobj=new square();

obj.sum();
ptrobj->obj();



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---