Thanks for your reply!
Sorry but I think i don't totally understand your last reply, my fault i guess. but if guess you mean that you are not sure if the original code would compile because the...
Type: Posts; User: Jelte
Thanks for your reply!
Sorry but I think i don't totally understand your last reply, my fault i guess. but if guess you mean that you are not sure if the original code would compile because the...
Thanks, While loop.. ofcourse! stupid i didnt thought about that one. I updated the chooseproduct function.
chooseproduct
int machine::chooseproduct() const
{
int choice = 0;
while(true)...
Hello everybody.
for practise a little bit. i build a basic vendor machine program (code below). i have to questions:
1. Recursion in function chooseproduct and memory usage.
2. Design
1.
...
Hello Folks,
I have a little question. what is the best way to read the properties of a file such as date of creation, type, etc. on a ubuntu system in C++?
Thanks for your help!
Jelte.
Solved
Sorry for this thread but i already solved the problem.
Solution:
if(BallCurrentLocation->y >= Player1CurrentLocation->y && BallCurrentLocation->y <= SizeBat)
Hello Everybody,
Hello Folks,
I try to make a little game Pong. Now i have a situation: i have 4 keys defined;
for player 1: keys w and s. w = UP, S = DOWN.
for player 2: Keys down arrow, up arrow.
the...
Hello folks,
I have a little problem. I use SDL to create some graphics and in this library there are some properties/function who has a Uint16 return type. so to catch these values i created a...
Thanks! that would solve my problem!
Jelte.
Wow, uhmm maybe i don't get it because my english not so good, but what is delta time?
if you want to, could you provide a a little example code?
sorry..... :$
btw: thanks for you fast...
Hello Folks!
I try to build a little game with SDL. But i cant figure out one thing. I need to make time based movements so the game would run on the same speed at all different types of PCs , I...
Hello Folks!
I have one little question. I need to know what is the best way of drawing graphics with C++ (think about dots or lines) . I tried the GTK++ Drawing area, but I think it is much to...
Oke, this helped me a lot. Thanks.
Runs out of memory.... Yeah that is quite silly of me.
Ok, so recursion is not the way to do it? just loop it?
Hello Folks, I made a program with a constantly recursion. It all works but at a certain moment i throws me a seg fault, but i cant figure out why. (maybe of the constantly recursion?)
recursive...
Solved.
I had to send to init commands to the device, and send my commands in 64-bytes.
Thanks for your help.
Jelte.
it is this one:
http://www.giftideasforeveryone.com/wp-content/uploads/2009/06/usb-missile-launcher.jpg
id-product: 514 - 0x1130
id-vendor: 4400 - 0x0202
i use:
config - 0.
alternate...
Hello Folks,
I changed my code so my program always send 8 bytes of data to the device (Thanks to Salem)
At that moment i was able to control the device, this means that i could let it fire a...
Salem thanks for your reply!
i test your suggestion tomorrow (it is close at midnight here in holland now) and post the result.
Thanks!
Jelte.
Hello Folks,
I Try to create my own program that can control a USB missile launcher. I try to accomplish this with the libusb library.
now i have a problem: I try to make my USB missile...
Hello everyone,
could somebody tell me what this snippet of code does?
a = cmd & MISSILE_LAUNCHER_CMD_LEFT ? 1 : 0;
b = cmd & MISSILE_LAUNCHER_CMD_RIGHT ? 1 : 0;
c = cmd &...
Hello Folks,
I try to write my own usb driver for my usb gadget, I write it on linux ubuntu with the libusb library. at this point i am able to setup a connection to the device but when i try to...
Hello Folks,
I think this is a very nooby question but i cant figure this out. Just for fun i want to acces USB interfaces on a ubuntu system. now ik have installed USBLib-dev it is located on:
...
no C++ does not have a garbage collector like VB and C#. you have to deal with the garbage yourself.
@bithub ok. nice to know :D
try empty your inbox/sended messages inbox, it can be full