Search:

Type: Posts; User: Jelte

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thanks for your reply! Sorry but I think i...

    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...
  2. Thanks, While loop.. ofcourse! stupid i didnt...

    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)...
  3. [basic C++] recursion and memory usage and program design

    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.
    ...
  4. Replies
    1
    Views
    3,246

    [C++] Read File properties

    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.
  5. Replies
    0
    Views
    1,133

    Position problem.

    Solved

    Sorry for this thread but i already solved the problem.
    Solution:


    if(BallCurrentLocation->y >= Player1CurrentLocation->y && BallCurrentLocation->y <= SizeBat)


    Hello Everybody,
  6. Replies
    2
    Views
    1,710

    SDL Events in seperated.

    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...
  7. Replies
    1
    Views
    9,604

    ‘UInt16’ does not name a type

    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...
  8. Replies
    5
    Views
    7,835

    Thanks! that would solve my problem! Jelte.

    Thanks! that would solve my problem!

    Jelte.
  9. Replies
    5
    Views
    7,835

    Wow, uhmm maybe i don't get it because my english...

    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...
  10. Replies
    5
    Views
    7,835

    SDL C++ Time based movements

    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...
  11. Replies
    3
    Views
    1,481

    Best way of drawing basic graphics

    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...
  12. Replies
    6
    Views
    1,033

    Oke, this helped me a lot. Thanks.

    Oke, this helped me a lot. Thanks.
  13. Replies
    6
    Views
    1,033

    Runs out of memory.... Yeah that is quite silly...

    Runs out of memory.... Yeah that is quite silly of me.

    Ok, so recursion is not the way to do it? just loop it?
  14. Replies
    6
    Views
    1,033

    Seg Fault during recursion

    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...
  15. Replies
    6
    Views
    12,643

    Solved. I had to send to init commands to the...

    Solved.

    I had to send to init commands to the device, and send my commands in 64-bytes.

    Thanks for your help.

    Jelte.
  16. Replies
    6
    Views
    12,643

    it is this one: ...

    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...
  17. Replies
    6
    Views
    12,643

    Hello Folks, I changed my code so my program...

    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...
  18. Replies
    6
    Views
    12,643

    Salem thanks for your reply! i test your...

    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.
  19. Replies
    6
    Views
    12,643

    C++ libusb usb_control_msg problem

    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...
  20. Replies
    1
    Views
    1,390

    Explanation of code snippet

    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 &...
  21. [C++] USB gadget driver, unbound kernel driver?

    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...
  22. Replies
    1
    Views
    2,516

    cant include usb.h

    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:
    ...
  23. Replies
    27
    Views
    5,405

    no C++ does not have a garbage collector like VB...

    no C++ does not have a garbage collector like VB and C#. you have to deal with the garbage yourself.
  24. Replies
    8
    Views
    1,603

    @bithub ok. nice to know :D

    @bithub ok. nice to know :D
  25. Replies
    2
    Views
    1,481

    try empty your inbox/sended messages inbox, it...

    try empty your inbox/sended messages inbox, it can be full
Results 1 to 25 of 56
Page 1 of 3 1 2 3