No one will be able to help you if the question is very broad. So what is the question here? Is it how to convert a char into bit? How about some examples?
Type: Posts; User: auralius
No one will be able to help you if the question is very broad. So what is the question here? Is it how to convert a char into bit? How about some examples?
I believe this might help you:
link
There you can learn that an array is passed as a parameter by passing its address.
I would assume this guy is not using Linux. In many cases, it is less problematic to deal with open source library in Linux, as when you install them with default setting or using precompiled...
Isn't it obvious, it's merely because you are trying to access memory beyond its real size. I would suggest you to learn how to tap breakpoint, this is the most essential skill in programming though...
Hi everyone,
Anyone can tell in which situations nested class becomes the best solution.
Of course we learnt it from textbook, but so far in real practices, I never used, infact avoid it. At...
dear all,
are there any possibilities that one thread crash without crashing the whole program. In my opinion this is not possible as multiple threads are still sharing same resources. am i right...
Dear all,
Let's say I have this code:
ClassA *a = foo();
Here, I want to overload the assignment operator:
I tried your code, I was curios,
it was working.
The problem is you are printing 10000 entries so you couldn't see the result.
For printing result, change the code to be like this so you only...
I think ifstream is to read.
You should use ofstream.
Refer this :Input/Output with files
in your case, when you select number randomly you must make sure it is between one to four.
better to give proper seeding for random number generator;
...
I think, it is linker problem:
Add these entries on Additional Dependencies option (for debug configuration):
* C:\Program Files\OpenCV2.2\lib\opencv_core220d.lib
* C:\Program...
For the time being, I only have one robot on one canvas.
Later I can improve by making data as an array of 16 (for example we limit the robot to 16).
in robot class we add another varible "char...
Thanks every one.
I am considering using singleton class to contain the data. The data is private member of this singleton class. Any other classes who try to read or modify this data must do it...
thanks for answering my questions, i think i understand.
that's just brief part of the code, i do delete the canvas after finishing.
dear all,
i have two class:
class Robot
{
public:
Robot(void)
{
how can we understand that algorithm?
my suggestion: use physics engine like: Box2D...you will make a very sophisticated game.
(you are using only x and y axis so it must be 2d game, right?)
good... making some progress...
just find with keyword: c#.net chart
may be u can ask in .net forum...
c++ programmer is a bit sensitiv with this .net technology since sometimes we can not find...
check here : CodeProject: A flexible charting library for .NET. Free source code and programming help
practically if you are using .net, you don't need another lib for GUI...
well let's see...
to display the data you might need nice GUI...
are you using microsoft product with it's MFC... check on codeproject.com.. there are plenty of nice graphic library based on...
i see...
you want to do the translation by letters...
first you need to parse the input first...
let say the user input "saya suka"
parse the input based on the white space...
put into...
i think it is not that easy...
it is called machine translation and it has been topic of research for many scientists...
try googling: "machine translation algorithm"
yo might need to read some...
wait...
you have one global variable num, right?
but it is accessed by several threads...
don't you think you should be careful on that...
i mean like putting putting some flags so that it won't...
if you really want to make it simple, why not changing this:
scanf("%s", &rank);
to become:
check variable rank please... it is only a single char, the problem is stack aroun this char might be corrupted....
how about directx sdk... do you have them?
check on this thread: http://www.gamedev.net/community/forums/topic.asp?topic_id=465306
how about platform sdk (psdk)... some forums say it is...