Search:

Type: Posts; User: AdnanShaheen

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,468

    You need to initialize it in constructor. Here...

    You need to initialize it in constructor. Here you've to declare it only.
  2. Replies
    9
    Views
    1,094

    In order to make your int* trand(const int x)...

    In order to make your
    int* trand(const int x) code work. You also need to
    trand(len); send a constant "len".
    Here you are not using "len" as constant, but you can cast it.
  3. Replies
    9
    Views
    1,094

    Come on guys, don't put your home work here...

    Come on guys, don't put your home work here please.

    Make your code like "int * trand(const int x)"
  4. Did you try running your program? I hope if you...

    Did you try running your program? I hope if you did, you'll get some weird behavior.
    The reason for this warning is, you have not initialized your struct variable Files.

    But there will be more...
  5. Thread: quiz lol

    by AdnanShaheen
    Replies
    7
    Views
    1,344

    no thanks

    no thanks
  6. Replies
    4
    Views
    892

    Try to read the help. According to warnings,...

    Try to read the help. According to warnings, printf() takes void*, where as you are providing it int.
    I hope you have some knowledge of pointers. ptrA is a pointer, and *ptrA is value pointer is...
  7. Replies
    4
    Views
    892

    Ritly said by quzah, depending on your compiler,...

    Ritly said by quzah, depending on your compiler, that value can be 0 (or some other garbage value out of program memory), which means NULL. So attempting pointer which is not valid.
  8. Replies
    7
    Views
    2,470

    Where is MyDll? If it is your dll, then you...

    Where is MyDll?

    If it is your dll, then you must load the dll, if you have not loaded it statically, you'll need to use LoadLibrary() to load it dynamically, and then use GetProcAddress() to get...
  9. Replies
    4
    Views
    5,551

    For details on versions. OSVERSIONINFOEX...

    For details on versions. OSVERSIONINFOEX Structure (Windows)
  10. Replies
    2
    Views
    1,392

    No you are wrong, keep googling

    No you are wrong, keep googling
  11. Replies
    9
    Views
    1,215

    Why are you not reading book? Your foodpositions...

    Why are you not reading book?
    Your foodpositions is an array of position. It is not a container.
    Read something on STL, you will get some idea about containers, and iterators
  12. Replies
    9
    Views
    1,215

    You have come up with this, because you don't...

    You have come up with this, because you don't know anything about iterators.
    Secondly, your "prog" must be defined somewhere.

    I would say, please refer to your books to fix your problem, and have...
  13. Replies
    4
    Views
    2,486

    Well I would suggest to read your book. For...

    Well I would suggest to read your book.
    For pointers (*) they are allocated at run time i.e. dynamically. We use "->" for it.
  14. Replies
    3
    Views
    1,044

    Try to read your book, on inheritance,...

    Try to read your book, on inheritance, overloading and overriding.
  15. Replies
    4
    Views
    2,486

    You are using DOT thats causing you problem....

    You are using DOT thats causing you problem. Since you created "respmsg" dynamically. So you'd need "->" to use its members.
  16. Replies
    21
    Views
    2,066

    You can, if you want. Obviously you're using it...

    You can, if you want. Obviously you're using it in other methods.
  17. Replies
    9
    Views
    1,215

    What is foodpositions_[5]??? Your "i" is...

    What is foodpositions_[5]???
    Your "i" is declared anywhere?
    what is foodpositions_[0]???
  18. Replies
    21
    Views
    2,066

    If you do not allocate memory, your...

    If you do not allocate memory, your inputFile[nIndex] = line will come in action. Obviously which is once allocated, and inputFile[nIndex] will point to line. Last time your "line" have let say...
  19. Replies
    21
    Views
    2,066

    Do you initialize your char* inputFile[19] like...

    Do you initialize your char* inputFile[19] like this?
    If yes, can you please think on it, where it is pointing?

    Ok let me tell you, first you have to create memory for char* inputFile[19]...
  20. Replies
    21
    Views
    2,066

    Can you post all of your code here? I will...

    Can you post all of your code here? I will examine it
  21. Replies
    21
    Views
    2,066

    Have you initialized your "char *...

    Have you initialized your "char * inputFile[19];"?
    Seems no, that is why you're getting segfault now.

    Initialize inputFile.
    Read data.
    Copy read data to inputFile
    Print it.
  22. Replies
    21
    Views
    2,066

    It compiled ok, but it is giving your wrong...

    It compiled ok, but it is giving your wrong result. Try using proper string copy function.
  23. Replies
    17
    Views
    7,487

    Use double pointer to int (int** pMatrix) to...

    Use double pointer to int (int** pMatrix) to solve your problem. You have to create array and then array on each item of array.

    I hope you will write it, hint is enough.
  24. Replies
    10
    Views
    1,481

    This is really an assignment from class :-) Any...

    This is really an assignment from class :-)
    Any how I hope the problem was fixed.
  25. Replies
    21
    Views
    2,066

    inputFile[i] = line // This line is problem. Use...

    inputFile[i] = line // This line is problem. Use proper copying of string.
Results 1 to 25 of 27
Page 1 of 2 1 2