New to C++ Programming, But Need a Push

This is a discussion on New to C++ Programming, But Need a Push within the C++ Programming forums, part of the General Programming Boards category; Ok, I know this may seem like a "Hi, I'm New Here" kind of topic, but I come from a ...

  1. #1
    Is a Robot Misto's Avatar
    Join Date
    Feb 2005
    Location
    In my apartment
    Posts
    7

    Question New to C++ Programming, But Need a Push

    Ok, I know this may seem like a "Hi, I'm New Here" kind of topic, but I come from a background dealing with PHP which frankly I haven't had a lot of experience with. I haven't had any real decent ideas for a program. I was always worried I might be copying someone else's stuff, but at the same time I'm told it's ok to add stuff to your program that you didn't originally write because sometimes it is unnessecary to reinvent the wheel, so to speak. Well, it's been awhile since I've messed with programming and I've come up with an idea for a program on my PDA[Windows Mobile 2003], but I don't know where to start my research. I know C++ is a great language to write in from what I've been told. It's very powerful and when written well can make some pretty damn useful applications. So, anyways, I was wondering if you guys could lead me in the right direction as to where to get started. Thanks.
    Last edited by Misto; 03-07-2005 at 12:11 AM. Reason: Typo

  2. #2
    Rog
    Rog is offline
    Registered User
    Join Date
    Jan 2003
    Posts
    78
    If I was going to write for a PDA running windows I would start looking at the .NET stuff. C++ is powerful, but it tends to be time consuming for the programmer. C# will allow you to knock out applications much more quickly (IMHO, of course).

    -Rog

  3. #3
    Is a Robot Misto's Avatar
    Join Date
    Feb 2005
    Location
    In my apartment
    Posts
    7

    Question

    I'm not worried about time, I just want to work off a decent language and I've been told .NET is something to stray away from. I'll look into C# though, anyone else have any suggestions?

  4. #4
    Rog
    Rog is offline
    Registered User
    Join Date
    Jan 2003
    Posts
    78
    If you want to stay away from .NET you will need to get the Software Developers Kit for Windows Mobile based Pocket PCs. The SDK gives you everything you need to write programs in C++

    Search on google.com using the terms "windows"+"mobile"+"sdk"

  5. #5
    email for MystWind avatar MystWind's Avatar
    Join Date
    Feb 2005
    Location
    Holland , The Hague
    Posts
    88
    I suggest you should read the turtourials on this site
    its a good one to get started with.
    Last edited by MystWind; 03-07-2005 at 08:31 AM.
    PLay MystWind beta , within two years

  6. #6
    Is a Robot Misto's Avatar
    Join Date
    Feb 2005
    Location
    In my apartment
    Posts
    7

    Lightbulb

    I'm actually a little disappointed in the tutorials, because it really doesn't bother going into any decent explainnation of what it teaches. Like the main() function. I'd like to know why main() has to be in my program. This is an example but I've seen this type of information lacking in the tutorials which has kind of turned me off slightly from them. I don't mean that to sound harsh, but that kind of thing is important for me.

  7. #7
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    I understand what you are saying but it is really not worth the explantion if its a begginers tutorial. Tutorials are for showing you how to code and example of how to use certain things not to bog you down with details.
    Here is why you have to have main in your program:
    1. Because the C++ standard says so.
    2. When you are linking your program to create an executable the linker looks for main as the entry point of your program without it you will get a unresolved linker error.
    Woop?

  8. #8
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    Like the main() function. I'd like to know why main() has to be in my program.
    In C++, you can have many files that make up a program, but unlike with php, you don't have a browser requesting a specific page to begin execution. Since you have to start execution of a C++ program somewhere, C++ has decided that the main() function is it.
    Last edited by 7stud; 03-08-2005 at 10:09 PM.

  9. #9
    Is a Robot Misto's Avatar
    Join Date
    Feb 2005
    Location
    In my apartment
    Posts
    7

    Question

    Quote Originally Posted by prog-bman
    2. When you are linking your program to create an executable the linker looks for main as the entry point of your program without it you will get a unresolved linker error.
    Number one is what I can't stand. Even if it isn't a detailed explination I'd want to get a general gist as to why I would do something in my programs. I mean you wouldn't tell someone to just open a port because they say so, there are security implications. I don't expect long winded explinations, but I wouldn't complain either.

    7stud, I appreciate you explaintion. That makes a lot more ense for me. I have one other question for you guys. In PHP you are limited in some aspects as to what you can do with it. Does C++ have any limits which shouldn't be attmepted?

  10. #10
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    In PHP you are limited in some aspects as to what you can do with it. Does C++ have any limits which shouldn't be attmepted?
    Someone was keeping track of how many things couldn't be done with C a while ago. They got a list of 5 things that couldn't be done with C, and those 5 things were really low-level, unheard-of things. Now C++ is extremely similar to C, so a pretty decent rule of thumb is that if it can be done on a computer, it can be done in C++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. swapping pointers
    By csvraju in forum C Programming
    Replies: 17
    Last Post: 04-01-2009, 03:18 AM
  2. Help calling function is asm
    By brietje698 in forum C++ Programming
    Replies: 24
    Last Post: 12-06-2007, 03:48 PM
  3. Inline asm
    By brietje698 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2007, 01:54 PM
  4. Getting position from game..
    By brietje698 in forum C++ Programming
    Replies: 1
    Last Post: 10-26-2007, 12:15 PM
  5. Queues
    By ramayana in forum C Programming
    Replies: 22
    Last Post: 01-01-2006, 01:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21