Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: manojg

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Re: how can i convert write() procedure to cout?

    Not following what you mean. Can you clarify it more?
  2. Replies
    3
    Views
    353

    Re: a simple question

    Thanks.
  3. Replies
    3
    Views
    353

    a simple question

    Hi,

    What is the difference between


    double a = 4.5;

    and
  4. Replies
    2
    Views
    1,065

    g++ 4.1.2 vs 4.6.1

    Hi,

    I have a code containing few classes. They compile and run fine with g++ 4.1.2. But with g++ 4.6.1, it does not recognize some methods inside the class. For example:



    class first
    {
    ...
  5. Replies
    12
    Views
    1,207

    Re: Class inside the same class

    Hi monarch_dodra,

    You are right, it is just splitting the class. I wrote this way to solve one of my problem temporarily (I was writing the data in a file, a type of formate which can also write...
  6. Replies
    12
    Views
    1,207

    Re: Class inside the same class

    HI Lindley,

    Thanks for reminding me. I have assigned a virtual distructor but I forgot to write in detail here.


    class singleParticle {
    private:
    double x;
    double y;
    ...
  7. Replies
    12
    Views
    1,207

    Re: Class inside the same class

    Hi all,

    Thanks everybody for your helpful suggestions. I figured out to do this way which similar to previous one:

    I created a base class for just one gas particle, "singleParticle", and...
  8. Replies
    12
    Views
    1,207

    Class inside the same class

    Hi,

    I am writing a simulation code. I have a class called "particle" which hold gas particles. Each gas particle has its neighbouring gas particles. And its neighbouring gas particles have their...
  9. Thread: small puzzle

    by manojg
    Replies
    7
    Views
    556

    Re: small puzzle

    Thanks guys for reply. I found the answer. In the package that I am using, one can run the code directly without compiling. But in case of vector, somehow one need to compile.
  10. Thread: small puzzle

    by manojg
    Replies
    7
    Views
    556

    Re: small puzzle

    Hi Lindley,

    Yes, its title input in class declaration is const char* that is why I have used title.c_str(). It crashes even if I use other methods of myClass which return some number. Also, it...
  11. Thread: small puzzle

    by manojg
    Replies
    7
    Views
    556

    Re: small puzzle

    Hi,

    I am using third party software, and myClass refer to one of them.
    GCDEF, yes that is what I was assuming but somehow it is not working. Ok, I will check again.

    Thanks a lot for your...
  12. Thread: small puzzle

    by manojg
    Replies
    7
    Views
    556

    small puzzle

    Hi,

    I have been puzzled by this simple code:


    vector<myClass*> cVect;

    char ch[10];
    for(int i=0; i<5; i++) {
    sprintf(ch, "%d", i+1);
  13. Replies
    7
    Views
    686

    Re: longest double number

    Ok, Thanks a lot everybody.
  14. Replies
    7
    Views
    686

    longest double number

    Hi,

    I have a data file with double variable with length > 30 (like: 4354.568324349349273282372837283).
    When I read and print out the number (in c++), it prints out correctly upto 20 digits...
  15. Replies
    3
    Views
    834

    Re: about execl function

    Ok, Thanks a lot.
    Is there any way to execute perl script within c++ code without replacing it? I tries system() but I have to give numerical argument to the perl script.

    Thanks again.
  16. Replies
    3
    Views
    834

    about execl function

    Hi,

    First time I am trying to use execl() function to execute a perl script in my c++ code. As a test I used something like this:


    int main()
    {
    execl("/home/user/abc/test.pl",...
  17. Replies
    11
    Views
    857

    search speed in c++

    Hi,

    If I have a long vector (say of size 800000) then it takes time to search a number in the vector especially if the number is near the end of the vector. However, in editor like vim, search is...
  18. Replies
    3
    Views
    440

    could not store class

    Hi,

    I have written a small class and tried to store in vector.

    -------------------------------------------------------------------------


    class subClas {
    private:
    Float_t fX;
  19. Replies
    1
    Views
    453

    a simple question

    Hi,

    I have a very simple question.

    "ptr" is a pointer to a "struct", "value" is a member (there are other members also) of this "struct" and "x" is an integer. What does following code return:...
  20. Re: difference between including header file and shared library.

    Thanks a lot everybody.
  21. difference between including header file and shared library.

    Hi,

    What is the difference between including header file (.h) and including shared library (.so) in C++ code?

    Thanks.
  22. Replies
    8
    Views
    634

    Re: strange behavior

    I am writting a code for a Monte-Carlo simulation. Yes, it is better to use loop instead of "goto". In my actual code, there are three arrays xp[n], yp[n] and zp[n] for position of objects. Also,...
  23. Replies
    8
    Views
    634

    Re: strange behavior

    Thank you very much everybody for your suggesion.


    Yes, it creats the array on heap so that it can be deleted. Can't we define small array on stack?

    The array size defined is 200. Does not...
  24. Replies
    8
    Views
    634

    strange behavior

    Hi c++ experts,

    In the code below, if I define the array xp[200] then it runs fine. But if I define it as xp[n] (where n is already defined) then it crashes after few run like >6000. The...
  25. Replies
    2
    Views
    565

    Re: a simple class question

    Thanks a lot Andy.
Results 1 to 25 of 53
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center