Search:

Type: Posts; User: Waleed Mujeeb

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,112

    hmm a little bit clear. Just asking, is the C++...

    hmm a little bit clear. Just asking, is the C++ string data type an alternative to char*? Any potential side effects of not using char*?
  2. Replies
    7
    Views
    1,112

    The Mysterious char*

    I have always been confused about the working of char* pointer.
    It seems to behave quite strangely.

    Unlike the int or float pointer, the char* pointer seems to be able to store an address and...
  3. Replies
    2
    Views
    1,544

    I get it now ,an infinite cycle. I am trying a...

    I get it now ,an infinite cycle. I am trying a make a 2d shooter for my project. I started abusing OOP. Problem solved i dont need an input class. Sorry for really coming up with such a dumb...
  4. Replies
    2
    Views
    1,544

    Circular Dependency A Dead End?

    //parent.h File


    #include "child.h"
    class child;
    class parent
    {
    child *pc;
    child c; //Gives ERROR
    };
  5. Replies
    7
    Views
    3,303

    That seems possible. Thanks, i might be able to...

    That seems possible. Thanks, i might be able to do without semaphores.
  6. Replies
    7
    Views
    3,303

    Multi-threading a must for games?

    This is a fairly general question. I plan on creating a 2d shoot-em-up game with C++ and SDL for graphics. With Enemy's following a certain predefined path or loop. I need to get input from user at...
  7. Poll: My system P4 HT 3.4Ghz. 1 GbRam 1Gb HD 4760....

    My system P4 HT 3.4Ghz. 1 GbRam 1Gb HD 4760.
    Average FPS = 17.
    You might want to double the FPS around 30. Noticed a little bit of lag.
  8. Replies
    0
    Views
    1,737

    SDL Color KEY Problem

    I am using a 24bit gun image for my game.
    When i Color key it and remove the white background.
    //color key mp5
    colorkey= SDL_MapRGB(opgun->format,0xff,0xff,0xff);
    But this doesnt colorkey...
  9. Thanks, I messed up addressess and References....

    Thanks, I messed up addressess and References. Need to check em out.
  10. If that is the case then why does...

    If that is the case then why does scanf("%d",a.access(i)); not work and scanf("%d",&a.access(i)); works ?
  11. Returning Address with Return Statement?

    class array
    {
    int arr[3];
    public:
    int &access(int n)
    {


    return arr[n];
    }
  12. Replies
    16
    Views
    2,133

    Now i get it, There is no Reason for ...

    Now i get it, There is no Reason for
    fgets(name,size++,stdin); or cin>>name to work. Because the pointer name is pointing to a ​Random Memory Address.
  13. Replies
    16
    Views
    2,133

    Thanks , I am new here ,Just asking is this forum...

    Thanks , I am new here ,Just asking is this forum a part of hacker culture? You might want to call me stupid but i would better know than never.
  14. Replies
    16
    Views
    2,133

    1.So the problem with new line that is left by...

    1.So the problem with new line that is left by cin ?
    2. something wrong with DevC++?
    3.Fgets has bugs?
    4.I would like to know what "IDE" you use.?
    Edit: I know that i mixed up some C and C++...
  15. Replies
    16
    Views
    2,133

    Dude I am using Dev C++ 4.9 compiler and It does...

    Dude I am using Dev C++ 4.9 compiler and It does not even without the increments.
  16. Replies
    16
    Views
    2,133

    Dev-C++ 4.9 confusion

    #include<iostream>
    #include<conio.h>
    using namespace std;
    int main()


    {
    char *name;
    int size;
    cout<<"Enter size";
  17. Replies
    5
    Views
    900

    Thansk i got it. The difference lies in post and...

    Thansk i got it. The difference lies in post and pre increment operators.
  18. Replies
    5
    Views
    900

    Macro Confusion

    The output is 9 49 can any1 explain how we get this output?


    #define P(x) (x*x)
    main( )
    {

    int i=3,j,k;
    j=P(i++);
    k=P(++i);
  19. Replies
    15
    Views
    3,013

    Makes some sense now Thanks.

    Makes some sense now Thanks.
  20. Replies
    15
    Views
    3,013

    but if it gets destroyed than why does the first...

    but if it gets destroyed than why does the first printf display 35 ,which means thats the value of 35 is still in stack but after the first printf the variable k gets destroyed. I am confused in the...
  21. Replies
    15
    Views
    3,013

    I am using Turbo C++ and i dont see any warning.

    I am using Turbo C++ and i dont see any warning.
  22. Replies
    15
    Views
    3,013

    Stack Problem

    Hello guys.This is my first post.

    Problem: The first printf outputs 35 which makes sense but the second printf outputs a garbage value? I know this has something to do with stack but can any1...
Results 1 to 22 of 22