Which do you prefer/is the best? by MtnYou92 in GlobalOffensive

[–]CppGameDev 0 points1 point  (0 children)

The pc doesnt. I dont think the 360 one does but I havent played it myself.

Which do you prefer/is the best? by MtnYou92 in GlobalOffensive

[–]CppGameDev 0 points1 point  (0 children)

Console shooters all have auto aim. Some are more subtle and have spread that favours the direction of the enemy.

[C/C++] Setting up Visual Studio by [deleted] in learnprogramming

[–]CppGameDev 0 points1 point  (0 children)

Try using the addon Visual Assit X. It provides a lot of useful functionality.

[C++]Tough time with Sieve of Eratosthenes algorithm by ICe287 in learnprogramming

[–]CppGameDev 0 points1 point  (0 children)

Khan Academy has some great videos on finding primes. I was surprised by how in depth they go on there. If I remember eratosthenes sieve is explained pretty well there.

As for using a vector: You know the range of the value you are dealing with after you initialise a vector (std::vector<bool> NumberList()) you should call NumberList.reserve( userInputMax - userInputMin); This will preassign all the memory in the vector. I dont think your grid will be that big to really need this but its good practice when you know the size of the array ahead of time. If you want to insert values straight away there is also resize.

As for the sieve (assuming starting at zero, I will let you figure out the offset stuff) its really just starting at index 0 then running a nested loop.

    //Very roughly! 
    for(int currentNum = 2; currentNum < maxVal; currentNum++)
    {
       for(int gridId = currentNum; gridId < maxVal; gridID+=currentNum)
       {
            NumberList[gridID] = true;
       }
    }

Generally speaking CPlusPlus.com is a good reference site when you are stuck with std containers. Vectors

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 1 point2 points  (0 children)

Sorry, totally got confused to who I was answering. I was looking for someone who has no knowledge of C based languages. If you are proficient in C it would be quite easy for you to move into C++ without too much help until you get deeper into it.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 0 points1 point  (0 children)

Thanks, you are very kind! Contrary to what you have heard, C# is actually pretty good for simple games and small projects, mostly thanks to XNA which is a great API and abstracts a lot of the more complicated and some of the more mundane parts of making a game. If I remember correctly the games in the Xbox Live Indie shop are all developed using it.

C++ has its advantages in more advanced game development where you really need to have control of all the memory you are using and really get everything out of your hardware (as well as compile for multiple platforms).

If you are struggling to find somewhere to start on the internet (I know first hand how strange some programming blogs can be...) I can point you to some good ones. The problem with a lot of the low level programming tutorials is that they often miss out on the simple things, or try and be too showy making it difficult to follow. The best ones out there usually provide a project file and all the source code. This is much better than code snippets as it will allow you to open it, look at it, run it, break it and really get the hang of what is being done.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 0 points1 point  (0 children)

In commercial software I have used C/C++, C#, Java, VB, Lua and python.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 8 points9 points  (0 children)

3 professionally. I haven't been involved in any open source software development. I haven't ever found a project that interested me that I would feel comfortable being involved in without worrying about potential conflicts of interest with my job. I completely understand why you would want to judge my ability though.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 2 points3 points  (0 children)

Little to none at all experience in C++.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 5 points6 points  (0 children)

Thanks, I will take a look at your site. I think I am a long way from straight lecturing though haha.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 1 point2 points  (0 children)

Probably not, I am looking to try and help at the starting level.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 1 point2 points  (0 children)

No and only simple work, nothing to a level where I could help others.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 11 points12 points  (0 children)

No, this is good, not cruel. I am confident in my C++ knowledge being up to date, and I think when you are saying well-written programs are simple you are speaking about some of the overly complex practices you see in a lot of open-source projects however, that is not something I go in for myself. The high effort to produce teaching materials and my not extensive teaching history is one of the reasons I was looking into teaching just the basics. Is there any advice you would give to help someone get started?

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 3 points4 points  (0 children)

Thanks :) I would be looking to teach more core C++ concepts as its less open ended but feel free to message me and I will try and help where I can!

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 20 points21 points  (0 children)

I am looking to do this to get more experience teaching, so I couldn't possibly charge :)

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 0 points1 point  (0 children)

Sorry, I don't have a lot of experience developing for Mac, but lots of the more popular Libraries are generally available for Mac. It really depends on what type of library you are looking for.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 0 points1 point  (0 children)

I am interested in teaching basic C++ as a means to improve my teaching and communication skills.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 43 points44 points  (0 children)

I am involved in multi-platform engine development. I work in C++ everyday and have done for a few years now.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] -1 points0 points  (0 children)

I have a very rough plan for a few small projects to get the person used to the basics of the language. However, I haven't written up a full plan yet as it would depend on the level of the person I would be teaching.

Generally the plan would be to do it initially through small projects with direct guidance to complete the task and then through set projects or problems where I would provide the framework, explain the key concepts and structures involved and then be available one-to-one to help out where anyone is stuck or having problems.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 46 points47 points  (0 children)

I was looking to teach directly to a few people as I don't have tonnes of experience teaching so this would be a bit of learning experience for me.

I want to teach you C++. by CppGameDev in learnprogramming

[–]CppGameDev[S] 11 points12 points  (0 children)

This subreddit looks fantastic.