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

Search:

Type: Posts; User: richard_tominez

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    905

    Re: Not displaying anything

    You misused strtok. strtok takes a string and a delimiter. It read filePath as a string. I suggest you use fgets and fputs in cstdio.
  2. Replies
    5
    Views
    799

    Re: Please check my code....??

    Include iostream; not iostream.h. Indent the bodies of your if and else if statements properly or you may want to use the switch statement. To continue getting other marks, use the while or do..while...
  3. Replies
    3
    Views
    586

    Re: A free linux compiler?

    http://en.wikipedia.org/wiki/List_of_C%2B%2B_compilers#C.2FC.2B.2B_compilers
  4. Re: How to ctreate an array of objects that contain character strings

    char array[5][80];
    /*Declares an array that has 5 elements.
    Each of the element has 80 elements.
    The first dimension represents the 5 words and the second dimension represents the maximum length...
  5. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    No errors on compiling? How about on linking?
  6. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    cout is a member of the std namespace. To use it:

    std::cout << "Hello World!";
  7. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    #include <iostream>
    #include <fstream>
    #include <cstring>
    #include <stdlib.h>
    #include <string>
    #include <direct.h>
    #include <Windows.h>
    #include <WinBase.h>
  8. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    _sleep function is obsolete. Try including windows.h to use Sleep function as a replacement to it.
  9. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    Try it again. I should also noted that c:\mingw\bin> is the working directory.
    1. Run cmd from the start menu
    2. Change the current directory in the bin folder in your mingw installation

    cd...
  10. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    windres is one of the utilities of Mingw package.
    To compile your .rc file in command-line using cmd shell:


    c:\mingw\bin> windres -i c:\resource.rc -o c:\resource.o

    where:
    c:\mingw\bin> is...
  11. Re: Is #pragma once ok to use as a guard mechanism?

    Read this article:
    http://en.wikipedia.org/wiki/Pragma_once
  12. Re: Difference LValue and RValue

    http://code-jam.blogspot.com/2006/07/lvalues-and-rvalues.html

    "Google is your friend!"
  13. Replies
    46
    Views
    15,180

    Re: How do I give my program an icon?

    Here:


    1 ICON "icon.ico"


    Save this as .rc file
    You can compile this using windres
  14. Replies
    13
    Views
    971

    Re: Unable to compile?

    Oh yeah, sorry my false lol!
  15. Replies
    13
    Views
    971

    Re: Unable to compile?

    just include the header file

    #include "abc.hpp"


    //abc.hpp
    #ifndef ABC_HPP
    #define ABC_HPP
    int solve(P & p);
    #endif
  16. Re: The "last one to post on this thread wins" Thread

    hey there...
  17. Re: The "last one to post on this thread wins" Thread

    hi!
  18. Replies
    3
    Views
    839

    Re: C++ newbie help needed

    PI should be a FLOATING POINT constant variable and shouldn't exist in your source code
  19. Replies
    2
    Views
    5,415

    Re: Class header help???

    this reply has nothing to do to your problem
    it would be better if you define enumerated constant m_e_month like this:


    enum m_e_month {
    January=1,
    February,
    March,
    April,
    May,
  20. Replies
    4
    Views
    838

    Re: Full Screen Mode.

    this is the emulation of alt+enter



    #include <windows.h>

    void fullscreen() {
    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c, 0, 0);
    keybd_event(VK_MENU,...
  21. Replies
    3
    Views
    666

    Re: Pointers in a Class

    i used pointers because i'm studying in how to use them, anyway, thanks for the help!
  22. Replies
    3
    Views
    666

    [RESOLVED] Pointers in a Class

    it doesn't shows the correct values



    /*Triangle.hpp*/
    #include <iostream>
    using namespace std;
    class Triangle
    {
    public:
  23. Re: why data members should keep private?

    Thanks for your help!

    Topic Solved
  24. Re: why data members should keep private?

    I'm searching answers too...
    that's why i posted my question here so that somebody could help in searching while I'm searching too... it is easier right?....there is somebody helping you to do the...
  25. why data members should keep private?

    :-)
Results 1 to 25 of 33
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured