• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

new to C++ development

I am a java developer new to C++ development. I am using eclipse ide downloaded from

http://eclipse.org/downloads/moreinfo/c.php

What is the best place to start. Please provide sample code, links, resources, sample training videos.
I tried helloworld example getting errors with endl cannot be resolved. std not defined etc
#include <iostream>
using namespace std;
void main()
{
  cout << "Hello World!" << endl;   cout << "Welcome to C++ Programming" << endl; }

Open in new window


what servers we run on. Can i build some simple web CRUD application to insert data into a database like oracle etc.
Thanks in advance
0
gudii9
Asked:
gudii9
  • 6
  • 6
  • 4
2 Solutions
 
mwochnickCommented:
0
 
gudii9Author Commented:
i tried
http://www.engr.mun.ca/~licheng/1020/how-to/eclipseTutorial/eclipseCppTutorial.htm

not sure what is MIGgw GCC project type. I do not have that option
0
 
mwochnickCommented:
didn't see the second part of your question about what servers C++ runs on.  C++ is a little different than java in that regard - its lower level - there are a few virtual machines out there but in general you are compiling and linking programs that run on natively on the host operating system or are plugins to a webserver like apache

Although to if your interested in the Microsoft platform you can run C++ in the .NET framework
http://msdn.microsoft.com/en-us/library/ms379617(v=vs.80).aspx

Apache
http://zach.chambana.net/apache-cplusplus/
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
mwochnickCommented:
GCC is a collection of compilers the gnu c++ compiler is one of them
http://gcc.gnu.org/

here's a video on setting up your environment
http://www.youtube.com/watch?v=xryv0fCL8us

0
 
masheikCommented:
Hi,
 
   There are lot of tutorials available in the internet,
   search with "C++ Tutorials for beginners" in google you will fin,d lot of materials ,
   If you want to go for books,
   go for Complete Reference type books like "C++ complete Reference by Schildt " and book from the c++ creator Bjarne Stroustrup,

   If you want to try some IDE,
   I recommend Code::Blocks, which is good to go for beginners ,

   code blocks --> http://www.codeblocks.org/downloads/26  Download one with mingw compiler

   If you download Microsoft Visual C++ 2008 Editon (Free ) this is also good,
 

  Apart from that try to read Open course ware lecture notes from MIT university,

  Few good links,
  http://www.cplusplus.com/doc/tutorial/
  http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-096-introduction-to-c-january-iap-2011/
0
 
masheikCommented:
you can create engine for web CRUD in C++ and run the engine on the background of the UI
0
 
gudii9Author Commented:
>>http://www.youtube.com/watch?v=xryv0fCL8us


the three video tutorials here are good. I am looking for more advanced video tutorials on C++ development using eclipse cdt, Mignw compiler similar to what is  shown in above videos. I want one piece of code calling other function which returns like string etc in different file in same or different package. I would like to see how using eclipse i can navigate to the called function area automatically from calling function by clicking on function. please advise
0
 
gudii9Author Commented:
>>http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/

i was going through above link example.

I see some ".h" files. What are they.  I know about .cpp files but not sure on .h files. Are they not C++ files. Please advise
0
 
gudii9Author Commented:
is there is any simple example like above one with only cpp files not .h file
0
 
masheikCommented:
Those are header files , which only contains the declarations not entire implementations you can consider them without .h files
0
 
mwochnickCommented:
here's another tutorial for CDT from IBM - its a bit dated but relevant
There's a nice set of additional links in the resources section at the end
http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/

The CDT FAQ is also a good resource for questions about configuring CDT
http://wiki.eclipse.org/CDT/User/FAQ

here is a link to some more videos
http://wiki.eclipse.org/CDT:Movies
 
0
 
masheikCommented:
hi mwochnick, the first link ,i have posted that already
0
 
mwochnickCommented:
II'd work with the .h header files as shown in the tutorial.  They are an essential part of C and C++ programming as that is how you tell the compiler what the interface to functions that you planning to use are - its kinda like an include in java

at compile time the compiler uses this to make sure you have call to the function or reference to another class from a library correct

at link time the actual library that header file is representing needs to be present to link your compiled program to the library to produce the exe - unless you are working with dynamic linking - then the linking is done when the program is run
0
 
mwochnickCommented:
masheik - didn't see your post - sorry about that - did you notice you did the same to me earlier? - its not a problem just the nature of the beast
0
 
masheikCommented:
ya, it happens, may be you are not refreshed the page, that is okay,no need to be sorry, i commented because user once again posted the link and asking for some help,and i thought you would have seen that link.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 6
  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now