Re: Questions about C++
hello,
i will try to answer your questions, maybe i will forget to answer some of them
about keyboard input and audio management, there are libraries exist which are cross-platform
i recommend you to look at sdl for your input and low-level audio needs, and SoLoud as your audio library which supports sdl so you can use soloud with sdl
for network programming, boost has a library called asio (which is available independently), and another library called eNet exists
about pointers:
pointers are addresses of variables to memory
for example:
int x=1234; //x is 1234
int *y=&x; //y points to x which might be 0x2398 or anything else)
*y=0; //x will be 0 also because we change pointer and variable changes due to change in memory, but the address is the same
and for memory management i recommend to use smart pointers like shared_ptr, unique_ptr, etc
look at boost.org, it has plenty of libraries to use which some of them are available in the C++ standard
in C++, you can use assembly eaven!
in msvc, i will give an example which works prety well!
asm
{
mov eax, 100
add eax, 2 //eax is 102
mul eax, 10 //eax is 1020
}
so you are not limited
about knowing basics and studying other things and try to program them, yes for some of them you can do it
and remember, C++ apps cant always be fast, due to coding things incorrectly or managing memory incorrectly
also be aware of memory leeks (because of this i recommend you to use smart pointers)
you might not get errors and your app might crash
also we have run-time errors beside compile-time errors so keep these in mind
now talking about math:
as i've said in the previous topic, you won't calculate, you ask computer to calculate things for you
mathamatics (calculation) is only required when you want to implement a 3d graphics engine or a database engine (which more expert people have implemented already for you so implementing them is reinventing the weal)
but mathamatic thinking is required
and keep in mind, we have different fields of programming so i cant say which of the
m requires mathematics fully which of them dont
the thing is, you must be aible to solve problems
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector