Thread: noob with basic q's

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    noob with basic q's

    So, I was reading the thread by kevinawad and while I got a good laugh, I got to see a little of ya'lls advice... But I have a question or two for you. I thought I might try to learn c++ since I needed something new to learn, and I loved the ideal that your not held to the internet to run it. I use html and css all the time, but sometimes you want to do things without the net. It looks a lot like PHP (my dad uses it so I know some about it) and seems pretty easy in the beginning (a lot of memorizing and making your brain work in the c++ style lol) But I'm wondering, can you do just about anything with c++ or is it mostly used for certain things? I thought you could make the program run in a window instead of just as a dos program, but I couldn't find a tutorial or anything talking about that? Could someone point me in the way of something? Or can you not do that untill your more advanced? The way I've always learned things is to skim through the learning, then come up with something to do or build and learn all the details as I need them instead of learning a bunch of things I might not need for months and then forgeting them. Is there anything I should know before I get too deep? I read the Intro to C++, If statements, Loops in C++, and Functions tutorials on this site so far... I think thats all the questions I have for now... Thanks for any help!

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> can you do just about anything with c++ or is it mostly used for certain things?

    Just about anything. Check up on win32 (the windows board would be a good place to look), for those pretty windows. But be warned, it would be recommended to learn some basic C/C++ beforehand. I personally don't know any GUI stuff really and am contented with that.

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    You cannot however have C++ code for you
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    You can do just about anything, but there are other languages that are more specialized for certain tasks. If you want to make a windows application rather than a console application, and you want to do it quickly, then C++ might not be best for you because the code for doing windows in C++ is more complicated than in other languages.

    If you want to be a programmer, then learning C++ well and all of its different abilities is probably a good idea.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    2
    Check up on win32 (the windows board would be a good place to look), for those pretty windows.
    I'll look into it, to see how it looks....

    Quote Originally Posted by Daved
    If you want to make a windows application rather than a console application, and you want to do it quickly, then C++ might not be best for you because the code for doing windows in C++ is more complicated than in other languages.
    What would you reccommend then for making windows applications? do you know of better programs for that?

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    I don't do it personally, but the Microsoft .NET languages like VB.NET or C# would probably get you there faster and more easily. C++ is probably still more powerful, but for a specific need you don't always need the extra power.

  7. #7
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I like C++ with GUI, but that's me. I don't like "proprietary" languages, and if you take the time, C++ w/ GUI can be a good learning experience.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  8. #8
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    If you prefer that drag-and-drop Visual Studio "visual builder" style that Daved mentioned, but don't have the dough, try using wxDev-C++. I personally think wx is uberbloatware, but you could give it a try. I still recommend getting a good grasp of C++ basics beforehand though.
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  9. #9
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I like wx, and use it for GUI. Also, I can use it on, say, a mac without redoing the GUI portion(s) of my code.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [ANN] New script engine (Basic sintax)
    By MKTMK in forum C++ Programming
    Replies: 1
    Last Post: 11-01-2005, 10:28 AM
  2. what are your thoughts on visual basic?
    By orion- in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-22-2005, 04:28 AM
  3. visual basic vs C or C++
    By FOOTOO in forum Windows Programming
    Replies: 5
    Last Post: 02-06-2005, 08:41 PM
  4. Basic C++ q's
    By awilmut in forum C++ Programming
    Replies: 5
    Last Post: 10-28-2001, 10:28 PM