Search:

Type: Posts; User: carlorfeo

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    3,484

    wave and MIDI sound

    hello
    I'm starting a project that will need either RAW wave playback/recording and MIDI playback
    And I want to keep it platform independent

    I've already took a look at SDL_mixer and OpenAL which...
  2. I've made some tests: IMO returning by reference...

    I've made some tests: IMO returning by reference seems to be the best choice.


    SomeClass & getData()
    {
    return * new SomeClass();
    }

    int main()
    {
  3. Replies
    3
    Views
    1,553

    Doesn't seem that weird then :)

    Doesn't seem that weird then :)
  4. Replies
    20
    Views
    2,935

    True please do not remove your codes the next...

    True
    please do not remove your codes the next time.
    This post has been useful for you but it's useless for others which would have learn from your mistake instead.
  5. Replies
    2
    Views
    1,082

    gonna take a look, thanks Daved

    gonna take a look, thanks Daved
  6. Replies
    2
    Views
    1,082

    how to get folder content

    hello
    Is there any platform independent library that allows me to get the content of a folder, or anyway to do any common stuff with the file system?
    thanks
  7. if((string)char_numType == "UNDERGRAD") It...

    if((string)char_numType == "UNDERGRAD")

    It doesn't look right but it works. What would be bad with that?
  8. Replies
    4
    Views
    20,674

    ok, great thank you :)

    ok, great
    thank you :)
  9. Replies
    4
    Views
    20,674

    thanks laserlight, it works fine now. Although I...

    thanks laserlight, it works fine now.
    Although I missed the fact that I don't really need to use the function Data() inside the class, I just could read data directly.

    May you explain what...
  10. Replies
    4
    Views
    20,674

    error: passing [...] discards qualifiers

    hello
    I'm learning how to use operators:
    this code compiles and works fine.


    struct Item {
    int data;

    Item (const int value = 0) { data = value; }
  11. Replies
    2
    Views
    911

    I've personally never used something like while...

    I've personally never used something like while (cin)
    I guess it just checks whether the object cin exists.

    about good() :
    http://www.cplusplus.com/reference/iostream/ios/good.html

    about...
  12. Replies
    10
    Views
    10,592

    well Swerve, I'm glad you've reached the solution...

    well Swerve, I'm glad you've reached the solution finally.
    But there is still one important thing you are missing:


    if(in_stream.fail())//checks the file could be opened.
    {
    ...
  13. Replies
    10
    Views
    10,592

    hi Swerve 1: I'd suggest you to use better...

    hi Swerve

    1:
    I'd suggest you to use better names for your variables/structures
    (avoid using "my" everywhere since it makes the code less readable).
    example:


    struct Item {
    char...
  14. We can help you of course, but we need a point to...

    We can help you of course, but we need a point to start from.
    Do you have any idea of how to get the solution? Did you write some code?
    The first move is up to you.

    Thanks
  15. anyway:...

    anyway:
    http://www.boost.org/more/getting_started/index.html
  16. IMO wikipedia is always a good point to start...

    IMO wikipedia is always a good point to start
    http://en.wikipedia.org/wiki/Boost_C%2B%2B_Libraries
  17. Thread: STL iterator

    by carlorfeo
    Replies
    1
    Views
    819

    Ohh, I've just got that "*" is an operator......

    Ohh, I've just got that "*" is an operator... it's solved.
    Sorry for the useless thread
  18. Thread: STL iterator

    by carlorfeo
    Replies
    1
    Views
    819

    STL iterator

    hello
    I've tried to read headers related to STL iterators, but they're too hard for my quite low knowledge of C++.
    That's what I am wondering about:
    deferencing an iterator gives me the value it...
  19. Thread: Prototypes?

    by carlorfeo
    Replies
    24
    Views
    2,453

    true, it's a lazy-ish practice

    true, it's a lazy-ish practice
  20. Replies
    3
    Views
    1,490

    If you have no idea we cannot help you. Try to...

    If you have no idea we cannot help you.
    Try to get one, write it and we will tell you how to improve it.
  21. Replies
    23
    Views
    3,685

    hi elsheepo I am using Kdevelop and I'm working...

    hi elsheepo
    I am using Kdevelop and I'm working very fine with that tool.
    Anyway I'd suggest you to practice with gcc using the terminal before, expecially if you write simple programs.

    Kdevelop...
  22. Thread: Prototypes?

    by carlorfeo
    Replies
    24
    Views
    2,453

    a hint for you: the following will work fine:...

    a hint for you:

    the following will work fine:


    double calcint(double amount, double rate)
    {
    return amount * rate * 1;
    }
  23. vart... it's a demonstration of his code...

    vart...
    it's a demonstration of his code indented. I didn't care about the code itself
  24. finally, this is your code + indentation:...

    finally, this is your code + indentation:
    doesn't it look more readable? (for you and for us)


    int main()
    {
    ifstream(liscense);
    liscense.open("regfile.txt");

    while(!liscense.eof())
  25. Replies
    12
    Views
    2,518

    I've made a mistake in my examples: the array...

    I've made a mistake in my examples: the array declaration inside the main function.
    My program creates that temporary array inside a function, so it doesn't need to be resized: I don't need it...
Results 1 to 25 of 128
Page 1 of 6 1 2 3 4