- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
11 Posted Topics
How would I do this [CODE] class test { public: int* num; }; int main() { test *d = new test; d->num = new int; d->*num = 3; cout << d->*num; } [/CODE] | |
Re: [QUOTE]I'm exclusively Windows 7 and use either Code::Blocks or VC++ 2010 Express. Of course I don't do professional coding any more so I am free to use whatever I want instead of what some employer forces down my throat.[/QUOTE] I don't do professional coding and use what I want but … | |
Re: I am working on my first SERIOUS C++ game, with SDL. It's 2D, something like Terraria (which is like 2D Minecraft), but Open Source & cross-platform. :) | |
Re: [QUOTE]Well since I got in a little late I'll spare no other's ego any expense. C++ still has the same drawbacks it's always had since I've been programming, and it's very nature implies that it doesn't have a built-in Microsoft Word file format interpreter that gets updated every time M$ … | |
Re: [QUOTE]We're programmers. We work from the light from the screen. And since we got no girls (being nerds), we don't need no groomin' neither. [/QUOTE] Geek Power! | |
Re: I don't think programming has changed my way of thinking. I don't think like a computer, unless I am programming. Computer programming was always striving for abstraction of hardware, algorithms, and all the low-level things, and human thoughts seems to me to be the most "abstracted" once, therefore the perfect … | |
Re: [QUOTE]The C Programming language by K&R[/QUOTE] That book is old, and C has changed several times after the release of the book (C89, C99), and several other small revisions (C90). Because it was written by the creator of the language, doesn't mean its such a great book (especially because of … | |
Re: This doesn't look really complicated. It will be too much code only if you want to make GUI. So start writing code, and when you get stuck, we will help you ;) | |
Re: [CODE] int random = rand()%4; if (random == 1) { std::cout << a; } etc...[/CODE] | |
Re: [QUOTE]Okay, so here's my set of problems: I need a simple error check, so that if the user enters the wrong type of character, he/she will be notified and allowed to re-enter a new value[/QUOTE] [CODE]template <class T> void input(T* variable) { while(1) { if (cin >> *variable) return true; … | |
When making overloaded template function is there a difference between template<> or template<type>. For example is there a difference between [CODE] template <class T> void dispm(T array) { cout << "called template<class T> void dispm(string array)"; } template<class T> void dispm(string array) { cout << "called template<class T> void dispm(string … |
The End.