Search:

Type: Posts; User: pratip

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    4,076

    Hi gustavosserra, Try this concept in your...

    Hi gustavosserra,

    Try this concept in your code and let me know whether it works...



    #include <iostream>
    #include <pthread.h>

    using namespace std;
  2. Replies
    7
    Views
    1,466

    Here is the code I used and it works fine with...

    Here is the code I used and it works fine with gcc compiler on Linux after some editing. I can't remember where I edited. Its upto you to figure it out :-)

    In main.cpp check the declaration of...
  3. Replies
    7
    Views
    1,466

    How do you call a member function?

    How do you call a member function?
  4. Replies
    2
    Views
    814

    Try using switch... case instead of if else. ...

    Try using switch... case instead of if else.

    Anyways, in your code the else condition is checked only when if(mov=='x') is false.
  5. Thanks Prelude for the suggestion. I found this...

    Thanks Prelude for the suggestion. I found this link while searching which may solve the problem of deleting the executable file on exit.
  6. Salem, I don't know the answer. Can you please...

    Salem, I don't know the answer. Can you please tell me, how?
  7. Below is a sample code where I am deleting the...

    Below is a sample code where I am deleting the running executable file. This works fine.



    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>

    int main(int argc, char *argv[])
    {
  8. Check this link...

    Check this link
  9. Try to escape the whitespace. Like this: ...

    Try to escape the whitespace. Like this:

    system("del \"C:\\Documents\ and\ Settings\\All\ Users\\Start\ Menu\\Programs\\Startup\\Stack\ Array.exe\"");

    Another option is:
    ...
  10. Replies
    14
    Views
    1,803

    Instead of giving a forward declaration of the...

    Instead of giving a forward declaration of the class Vector3D, define the class Vector3D before the definition of the class Quaternion..
  11. Thread: Stuck with '\b'

    by pratip
    Replies
    5
    Views
    904

    Thanks magos... It works.

    Thanks magos... It works.
  12. Thread: Stuck with '\b'

    by pratip
    Replies
    5
    Views
    904

    The program is waiting for 10 secs and exits...

    The program is waiting for 10 secs and exits without any output.
  13. Thread: Stuck with '\b'

    by pratip
    Replies
    5
    Views
    904

    Stuck with '\b'

    I want to print 0 to 9 in an interval of 1 sec between each number AND the previous number must be overwritten.

    i.e. The numbers should be printed at the same location on the screen. But this is...
  14. Replies
    3
    Views
    1,190

    #include #include #include...

    #include <iostream>
    #include <string>
    #include <cstring>

    using namespace std;

    int main ()
    {
    int letter_count;
    int words=0;
  15. Replies
    2
    Views
    748

    There are still some logical error. Fix it...

    There are still some logical error. Fix it yourself...



    void sales_type(char& s_type, int& brand, int& quantity,int&
    total_coke,int& total_pepsi,int& total_dry,int& total_hires){

    s_type...
  16. Replies
    2
    Views
    1,182

    What is the error message?

    What is the error message?
  17. Errors in your code: => Declared as BUFLAN and...

    Errors in your code:
    => Declared as BUFLAN and using as BUFLEN
    => Use sprintf, not sprint


    Better use int main() and do a return 0 at the end, instead of void main
  18. Replies
    6
    Views
    976

    Axon, why not... provided you have to do mine :-)...

    Axon, why not... provided you have to do mine :-) hahaha...
  19. Replies
    2
    Views
    992

    1. In your overloaded

    1. In your overloaded << operator do a "return out;"

    2. In the function List::replace(VALUE_TYPE v), you are declaring a variable VALUE_TYPE x. Without initializing it to anything you are trying...
  20. Replies
    6
    Views
    976

    try this... #include using...

    try this...



    #include <iostream>
    using namespace std;

    void header();
    void table();
  21. Replies
    2
    Views
    1,173

    Earlier code I have not compiled... This code is...

    Earlier code I have not compiled... This code is compiled successfully and it worked...



    #include <iostream>
    using namespace std;

    int calculations()
    {
    int number;
  22. Replies
    2
    Views
    1,173

    int calculations() { int number; int...

    int calculations()
    {
    int number;
    int positiveValues;
    int negativeValues;

    for (int counter = 0; counter < 1; counter++)
    {
    positiveValues = 0;
    negativeValues = 0;
  23. Replies
    8
    Views
    2,700

    Is it your requirement to use friend function?...

    Is it your requirement to use friend function? Else you can use this code...



    #include <iostream>

    using namespace std;


    class List
  24. Replies
    8
    Views
    2,700

    you missed the starting parenthesis in the...

    you missed the starting parenthesis in the overloaded + operator defination
  25. Replies
    8
    Views
    2,700

    #include using namespace std; ...

    #include <iostream>
    using namespace std;

    const int CAPACITY=30;

    class List
    {
    public:

    typedef int VALUE_TYPE;
Results 1 to 25 of 28
Page 1 of 2 1 2