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

Search:

Type: Posts; User: ted_kingdom

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    477

    Re: Passing fstream object to function

    Thanks, it can be compiled now, but expected .txt file is not created. Where is a catch?

    Never mind. It must be written ofstream. Thanks again.
  2. Replies
    3
    Views
    477

    Passing fstream object to function

    Hello.
    I want my function to take 'fstream' object as an input, so the program looks like this:

    #include <fstream>
    using namespace std;

    void test(fstream a){
    a.open("test2.txt");
    a...
  3. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    Thank you for advice. I'll try to follow it.
  4. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    Thanks, you were absolutely right!
  5. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    So, I have a class Planet:

    class Planet {
    public:
    void Verlet(int, double []); // a method to implement Verlet algorithm
    void VelocityVerlet(int, double []);
    void...
  6. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    Actually, you are right. Compiler doesn't complain, but I don't get the output as I expected.
    So, in my program I need to use a method of the class that takes as an input an array of data type...
  7. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    I commented it out just to let everybody know what was my intention. Unfortunately, I don't know what it does (I asked it, but still waiting for the response as my googling didn't answered it). If...
  8. Replies
    15
    Views
    1,294

    Re: New data type in method declaration

    It was complaining that PlanetType was not declared. I found the answer on other forum:

    class Planet {
    public:
    // typedef class Planet PlanetType;
    template<class PlanetType>...
  9. Replies
    15
    Views
    1,294

    New data type in method declaration

    Hello, I want my method of the class to take as an input an array of data type derived from class. How can I do this?

    class Planet {
    public:
    // typedef class Planet PlanetType;
    ...
  10. Replies
    2
    Views
    667

    Re: Read from file

    Thank you for your answer, but I went a little bit different way:

    #include <iostream>
    #include <fstream>

    using namespace std;

    int main()
    {
    float inputData [6];
  11. Replies
    2
    Views
    667

    Read from file

    Hello.
    I want my program to read variables from file "input.txt":

    Moreover, I want program to read only the numbers after colon. How can I do it?

    #include <iostream>#include <fstream> // to...
  12. Replies
    4
    Views
    851

    Re: Undefined reference to

    No, thank you. Initially I did not create a project at all. Now it works fine. Thanks a million!


    Done.
  13. Replies
    4
    Views
    851

    Re: Undefined reference to

    Online compiler also builds. But Code::Blocks 12.11 keeps yelling:
    Build messages:

    C:\Users\oniltech\Dropbox\CMS\Molecular Dynamics\Assignment 1\revision 1\BCC_FCC_HCP.o:BCC_FCC_HCP.cpp||...
  14. Replies
    4
    Views
    851

    Undefined reference to

    When building the program I get the following error: undefined reference to `Atom:: DoBCC(float, int, int, int)'. What am I doing wrong? Thanks in advance.

    main.cpp

    #include <iostream>...
  15. Replies
    2
    Views
    551

    Re: 3-dimensional arrays

    Thank you very much. You are absolutely right.
  16. Replies
    2
    Views
    551

    3-dimensional arrays

    Hi. I receive unexpected outcome in my programm. Instead of geting all combinations of 0, 1, 2 (i.e. 000, 001, ..., 222) I get only 000 001 002 010 011 012. Can somebody tell me why?
    The idea of...
Results 1 to 16 of 16


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center