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

Search:

Type: Posts; User: yzaykov

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    568

    A Rounding Problem

    Hey there!
    Have a look at the code below:

    #include <iostream>
    #include <cmath>

    int main()
    {
    double num = log10(8);
    double den = log10(2);
  2. Replies
    5
    Views
    624

    Re: template problem

    edit
  3. Replies
    5
    Views
    518

    Re: Default function parameter

    void (*Func)(int, int = 1)
  4. Replies
    2
    Views
    420

    Re: Searching C++ strings?

    Surprisingly, this function is called .find() (-:
    Have this site in mind before asking such questions:
    http://www.cppreference.com
    In this very case you may pay attention to the fact you search...
  5. Replies
    3
    Views
    481

    Re: help?Overloading Operator =

    Declare operator= like this:

    IntArray& IntArray::operator=(const IntArray&)
  6. Re: Explanation of the program that reads files and displays them

    That's the another standard way of declaring main. This way you can use the arguments, passed to your program. argc is the number of the arguments (the first one, e.g. [0] is always the name of your...
  7. Replies
    5
    Views
    667

    Re: Cast a char to char*

    As it turns out, your function concatenate() expects a char* while you pass char. You'll be probably happy to pass the argument as &_text[i]. And finally - I don't believe this is ever going to work,...
  8. Replies
    3
    Views
    487

    Re: BC++, static linking

    I believe you have a dependency problem. Let us know if the problem is present after making a clean build of the application, that uses "the dlls and the libs" (actually only a relink would probably...
  9. Replies
    9
    Views
    767

    Re: operator++ with templates

    Oh, really?! Then you tell me why this fails to compile:

    int main()
    {
    return int i = 0;
    }
  10. Replies
    9
    Views
    767

    Re: operator++ with templates

    Because you're trying to declare a variable inside a return statement.
    And by the way... I'd think for a minute before committing/submitting this... whatever it does.
  11. Replies
    3
    Views
    487

    Re: BC++, static linking

    Give an example.
  12. Replies
    2
    Views
    1,709

    Re: Warning when printf-ing long double

    Hm, right. Okay, thanks.
  13. Replies
    2
    Views
    1,709

    Warning when printf-ing long double

    For this line of code, where fraction is of type long double:
    sprintf(fractBuf, "%.4llf", fraction); I get this warning in gcc: Any ideas why? And what does that mean? There's no warning with %Lf.
  14. Replies
    18
    Views
    1,254

    Re: Reverse List Iterator + Overload operator

    Hey lon3r, that's a big piece of code you pasted. We're unlikely to act like a debugger. Probably you can debug through the code, find the function that causes the segmentation fault and paste only...
  15. Replies
    4
    Views
    416

    Re: How to pass data in tree form to caller ?

    probably
    static MovieDocument& instance()
  16. Replies
    7
    Views
    728

    Re: File stream and size

    As long as you don't know the maximum expected size of the vector, it's very unlikely that the compiler does. Neither reserve(), nor resize() will save you in this very case. So when you push_back,...
  17. Replies
    3
    Views
    1,237

    Re: Maximmum Utilization of Cache Memory

    1. Are you talking about cache like L1, L2,...? I believe you're not able to access this through C++. That's architecture dependent.
    2. Are you talking about the CPU registers? Then you can use the...
  18. Replies
    7
    Views
    10,490

    Re: From int to time_t

    As far as I remember, the function you need is called gmtime. Search for it in google.
  19. Re: Convert bytes to int, keep the negative number

    Probably you'll be happy to read this article:
    http://en.wikipedia.org/wiki/Signed_number_representations
  20. Re: how to get the output pattern of this function..

    For non-negative 'n' and 'm' it looks like that's the sum of the number from 1 to 'n' minus the sum of the number from 1 to 'm':



    #include <iostream>

    int what(int n,int m)
    {
    if(!n && !m)...
  21. Thread: Constructors

    by yzaykov
    Replies
    6
    Views
    531

    Re: Constructors

    Be more descriptive.
    By the way I'd use initialization list for constructing 'message' and I'd prefer string rather than char*. And I definitely don't know which is "the old fashion way".
  22. Replies
    46
    Views
    7,776

    Re: How do I give my program an icon?

    ... or after building the executable, you can use a program like exescope:
    http://hp.vector.co.jp/authors/VA003525/emysoft.htm#6
    There are a lot of these... if especially this one is licensed or...
  23. Replies
    11
    Views
    718

    Re: Storing/processing large amount of files

    Maybe some profiling would be required but I believe that calculating hash codes or crawling through the directories manually is going to be slower then letting the file system does the work by...
  24. Replies
    7
    Views
    456

    Re: a doubt regarding rvalues

    (Hm, looks like this [RESOLVED] thing is moderators' job...)

    I didn't say that "you're not correct". I said that this "is not the case". It's just that you didn't answer your question.

    No, it...
  25. Replies
    7
    Views
    456

    Re: [RESOLVED] a doubt regarding rvalues

    No, that's not the case. Remove the "[RESOLVED]" from the topic name and let someone else answer.
Results 1 to 25 of 65
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center