Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to learn programming, please help!!!! Pin
kyleiscool200411-Jun-04 6:26
kyleiscool200411-Jun-04 6:26 
GeneralRe: Trying to learn programming, please help!!!! Pin
David Crow11-Jun-04 8:03
David Crow11-Jun-04 8:03 
GeneralRe: Trying to learn programming, please help!!!! Pin
jmkhael8-Jun-04 7:22
jmkhael8-Jun-04 7:22 
GeneralRe: Trying to learn programming, please help!!!! Pin
Ni@m8-Jun-04 10:46
Ni@m8-Jun-04 10:46 
GeneralRe: Trying to learn programming, please help!!!! Pin
kyleiscool200411-Jun-04 6:28
kyleiscool200411-Jun-04 6:28 
GeneralRe: Trying to learn programming, please help!!!! Pin
jmkhael11-Jun-04 6:43
jmkhael11-Jun-04 6:43 
GeneralRe: Trying to learn programming, please help!!!! Pin
Taha Elsayed8-Jun-04 14:38
Taha Elsayed8-Jun-04 14:38 
GeneralRe: Trying to learn programming, please help!!!! Pin
John R. Shaw8-Jun-04 17:18
John R. Shaw8-Jun-04 17:18 
kyleiscool2004 wrote:
There are some things about programming you can't get from a book

You are right! You have to learn to think like a programer, and that comes with understanding plus experience. There are some totorials at codeproject that may help, such as pointers.

One of the best ways I know of (when starting) is to take a look at the C library functions (strlen,strcpy,strtok,etc...) and try to write your own versions.

Example:
int MyStrLen(const char* pStr)
{
    int i;
    if( !pStr )
        return 0;
    for( i=0; pStr[i]; ++i ) {}
    return i;
}

// OR

int MyStrLen(const char* pStr)
{
    int i = 0;
    if( pStr )
        for( i=0; pStr[i]; ++i ) {}
    return i;
}

// OR

int MyStrLen(const char* pStr)
{
    char* pStart = pStr;
    if( pStr )
        for( ; pStr; ++pStr ) {}
    return (pStr - pStart) / sizeof(char);
}

If you know why each of the above works, then you are well on your way!

As for game programming there are lots of sights where you can look, but none of them will do you any good unless you understand the language. Also, game programming is very math intensive; so you will need to be very good at mathmatics.

Well, have fun and learn all you can!


INTP
GeneralNewbie CFile problem Pin
robdillon18-Jun-04 6:09
robdillon18-Jun-04 6:09 
GeneralRe: Newbie CFile problem Pin
David Crow8-Jun-04 6:36
David Crow8-Jun-04 6:36 
GeneralRe: Newbie CFile problem Pin
robdillon18-Jun-04 23:40
robdillon18-Jun-04 23:40 
GeneralRe: Newbie CFile problem Pin
David Crow9-Jun-04 2:19
David Crow9-Jun-04 2:19 
QuestionHow to compile HTMLs to CHM in C++ Pin
Tcpip20058-Jun-04 6:00
Tcpip20058-Jun-04 6:00 
AnswerRe: How to compile HTMLs to CHM in C++ Pin
jmkhael8-Jun-04 6:32
jmkhael8-Jun-04 6:32 
AnswerRe: How to compile HTMLs to CHM in C++ Pin
peterchen8-Jun-04 9:11
peterchen8-Jun-04 9:11 
GeneralOPEN / CLOSE cash register. Pin
Jonavis8-Jun-04 5:24
Jonavis8-Jun-04 5:24 
GeneralRe: OPEN / CLOSE cash register. Pin
David Crow8-Jun-04 6:39
David Crow8-Jun-04 6:39 
GeneralRe: OPEN / CLOSE cash register. Pin
palbano8-Jun-04 8:11
palbano8-Jun-04 8:11 
GeneralRe: OPEN / CLOSE cash register. Pin
Jonavis8-Jun-04 10:22
Jonavis8-Jun-04 10:22 
GeneralA question about DirectX and CDoc/CView Pin
chenbuaa8-Jun-04 5:14
chenbuaa8-Jun-04 5:14 
GeneralCCheckListBox Pin
Jnewg58-Jun-04 5:06
Jnewg58-Jun-04 5:06 
Questionhow to open document with exiting application? Pin
pnpfriend8-Jun-04 4:26
pnpfriend8-Jun-04 4:26 
AnswerRe: how to open document with exiting application? Pin
vcplusplus8-Jun-04 5:19
vcplusplus8-Jun-04 5:19 
GeneralRe: how to open document with exiting application? Pin
Anonymous9-Jun-04 4:09
Anonymous9-Jun-04 4:09 
GeneralStart an application remotely Pin
stupidflasucks8-Jun-04 3:53
stupidflasucks8-Jun-04 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.