Help creating first C++ program

Hey guys this is going to be a bit of a novel but I’ll try to keep it as short as possible.

I'm going to start learning C++ and at the same time I’ve just switched to a Linux Mint OS (previously a Windows user), I used to be fairly competent in VB6 & .NET many years ago.

Anyway I'm using CodeBlocks as my IDE and I’m trying to create a program that will pull some information from a websites search page.
It will have the following objects; (these names are from .net so not sure if they actually relate to a C++ IDE)
- Main form, some radial buttons, command buttons, listview, imagebox, labels.

So anyone I’m struggling to find out which project i need to use to start developing a program like I’ve described.

Thanks in advance.
Hi,

Congratulations on making the move to Linux !! :+D

GUI things aren't a part of the core of the C++ language, but there are other frameworks and libraries which can do these things. Qt seems to be a good one, there is heaps of stuff to learn there. http://www.qt.io/

Some links to C++ libraries:

http://en.cppreference.com/w/cpp/links/libs

Best of Luck, don't be afraid to ask questions :+)

Edit:

I should say though, if you are new to C++, it would be worthwhile to start out doing some console apps until you learn a fair amount of C++. Otherwise you might find it hard to understand what is happening in the GUI if you don't understand the underlying concepts.
Last edited on
Thanks for your response mate
I've already designed the GUI, it's just the coding I’m struggling on. I'm finding it quite hard coming from a win32 structure and using .NET.

Is the concept behind the GUI you're talking about, just the fact the the IDE pre-codes it for you? Or am I missing something big here haha?
Hi,

It was the knowledge of C++ that I was mentioning, you have mentioned you are struggling with the coding. I am not sure what .NET does, but in C++ things like OOP, classes, inheritance, function overloading, constructors and member initialization lists, default arguments, references, pointers, operator overloading. The thing is, you could start reading the documentation for Qt and looking at one of the zillions of examples or tutorials it has say, then not know what most of it meant - if you didn't know the things in that list were. It might not be so bad though, you could always ask lots of questions here - people are always happy to explain :+) I should point out now, that I only have basic knowledge, but there should be plenty of others who can help. And there are dedicated forums for the particular framework being used.

Have you already decide on a framework to use? Which one? :+)
I think I’m starting to realize that I’m not as good as I thought I was, I only learnt what I needed to in the previous languages.

Just did a bit of reading and found out my 'hands on' learning method is going to be a lot longer then I anticipated!
Last edited on
Why do you want to learn C++ - just for fun ?

Since you know .NET why don't you give Mono a chance?
http://www.mono-project.com/download/#download-lin
http://www.monodevelop.com/
No worries :+)

I reckon you should pick a framework to use, then have a go at a tutorial and an example. Qt has lots of example apps which you can look at, about 400 odd in the example section of QtCreator the Qt IDE. Then ask questions about what you don't understand. The things I mentioned aren't particularly difficult concepts on their own - you may be able to pick it up quickly given you already have a background in some other languages.
Well being on a Linux OS now sort of forced my hand, plus I was a little interested in C or C++. Just thought it would catch on faster since I have a little bit of experience.
Just did a quick search on Mono and read about the .NET Core as well, It may be a little easier to use but I've still got to get the basics of the C,#,++ syntax (I assume they're all similar). It's quite different to what I'm used to.

I managed to find a plugin for Codeblocks called wxWidgets, Do you think I'd be better off ditching the Codeblocks IDE and going with Qt?
Do you think I'd be better off ditching the Codeblocks IDE and going with Qt?


You can program Qt or wxWidgets, or fltk, or several other graphics frameworks using the Code::Blocks IDE.

I used to be fairly competent in VB6 & .NET many years ago.

There are also other languages available other than the C based languages. Python, Perl, or even some languages similar to Visual Basic.
http://linuxmafia.com/faq/Devtools/visual-basic.html
Well I think we have all managed to point out there are plenty of different frameworks to use - there are heaps of different ones in the link in my first post.

If you do go with Qt, the QtCreator IDE is easy to use and has all the examples and tutorials built in. But Qt (like many frameworks) can be integrated into many IDE's. I sometimes use KDevelop which can be used to develop with over 60 different languages / scripts - provided one has a compiler / interpreter to deal that particular language. https://www.kdevelop.org/

But the choice of what you want to do is up to you. Although a C++ one is a good idea, C++ is a great language to learn :+)
I guess some of the things which may help you decide which system to go with:

Quality reference material, examples, tutorials, a forum to ask questions in.

The Language it uses. Whatever suits you I guess.

The level of the technology. Maybe you are happy to do a basic GUI (Dialogs & Controls) or maybe something that has other technology as well, such as cross platform development, support for mobile phones, 3D animation, integration and support for Databases etc.
Topic archived. No new replies allowed.