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

Search:

Type: Posts; User: metzenes

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    719

    Embedding Python - Crash while importing

    I'm developing a method in C++ that makes use of a Python function. I use Python embedding in C++ and everything works nice, except one thing.

    The C++ program calls this script several times. The...
  2. Embedding Python in C++ - Crash while importing

    I'm developing a method in C++ that makes use of a Python function. I use Python embedding in C++ and everything works nice, except one thing.

    The C++ program calls this script several times. The...
  3. Re: Different return types - class Type herarchy

    Thanks, I understand.

    Could it be a possible solution to declare 'value' as public, and after access to it in the way:



    Type * = function(parameterX, parameterY);
    cout << Type->value;
  4. Different return types - class Type herarchy

    Hi!

    In another topic we were discussing the ways of defining methods which could return different data types.

    Someone suggested to define a herarchy of classes:



    I'm currenty trying to...
  5. Replies
    7
    Views
    5,887

    Re: Problem with system paths

    You were right guys (of course!).

    While I get errors working with a string defined by me ("L:\Source\file.txt"), it works nice if I read the path from a text file.

    Thanks!
  6. Replies
    7
    Views
    5,887

    Re: Problem with system paths

    Here an example of what I try to do:



    #include<iostream>
    #include<string>
    #include <algorithm>

    using namespace std;
  7. Replies
    7
    Views
    5,887

    Re: Problem with system paths

    Yes, but the thing it's that I'm reading a file path from a text file, with the format

    C:\Folder\fileName.txt

    Some methods don't read '\' as a backslash, but an escape character combined with...
  8. Replies
    7
    Views
    5,887

    Problem with system paths

    Hi!

    I'm working with strings containing file paths with the format:
    "C:\Folder1\Folder2\fileName.txt"

    The problem is that some methods I'm going to use later (mkdir, etc.) don't like this...
  9. Replies
    2
    Views
    668

    Re: Help with templates

    template <typename T>
    Coordinate<T>::Coordinate(string name, float max, float min, string unit, vector<T> values){
    this->name = name;
    this->max = max;
    this->min = min;
    this->unit...
  10. Replies
    2
    Views
    668

    Help with templates

    Class definition:
    --------------------------

    template <typename T>
    class Coordinate{
    public:
    //Constructor

    Coordinate(string name, float max, float min, string unit,...
  11. Replies
    2
    Views
    682

    Complicated data structure

    I'm developing a recursive method for a class which will return a complicated data structure (a list of dictionaries which will contain lists of dictionaries as values).

    The data structure could...
  12. Replies
    8
    Views
    7,868

    Re: Different return type depending on data

    Thank you all for all your interesting and helping answers!

    I'll explain more in detail what I'm trying to do:

    I'm reading a text file that includes loads of data ordered by columns. Each...
  13. Replies
    8
    Views
    7,868

    Different return type depending on data

    I'm designing a class where there's a method that should return a different data type depending on certain circunstances.

    Specifically, I'm reading from a text file. If the data found are strings...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured