Search:

Type: Posts; User: mariostg

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. @Elysia It's a very interesting idea, but I get...

    @Elysia
    It's a very interesting idea, but I get a compile error in my prototype. I think I need a break.
  2. Replies
    4
    Views
    1,549

    @Elkvis Yes indeed, that is the idea. As the...

    @Elkvis
    Yes indeed, that is the idea. As the dial is rotated clockwise, degrees increase by 45 and at NW position, reset to North. But for some reason I cannot make this work.
    I think I am going...
  3. Replies
    4
    Views
    1,549

    Operator++ with enum class

    I have this in my header file:

    public:
    enum class Azimuth {NORD = 0,
    NE = 45,
    EST = 90,
    SE = 135,
    SUD = 180,
    SO = 225,...
  4. It turns out I get a compiler error when I do...

    It turns out I get a compiler error when I do this:

    cout << Bousole::Azimuth::OUEST << endl;
    But I can do this without problem

    auto z=Bousole::Azimuth::OUEST;
    But I cannot do cout << z...
  5. @Elysia. I will have to double check this when I...

    @Elysia.
    I will have to double check this when I am at my computer, but I am pretty sure I tried Bousole::Azimuth::NORD or a combination thereof and got a compile error. Or I am lost... which is...
  6. Access enum class and its values outside of the class.

    I cannot wrap my head as to how to access my enum class Azimuth.


    #ifndef BOUSOLE_H
    #define BOUSOLE_H

    #include <iostream>
    #include <string>
    #include "StringHandler.h"
  7. Replies
    2
    Views
    1,600

    I was just about to post that I solved it but you...

    I was just about to post that I solved it but you replied before I could. I tend to forget about this important detail.
    Thanks anyway.
  8. Replies
    2
    Views
    1,600

    g_strdelimit Segmentation fault.

    Something stupid must be going on. I really can't figure what I am doing wrong


    #include <stdio.h>
    #include <glib.h>

    int main(void)
    {
    gchar *t="LeftSide:RightSide";
    ...
  9. Replies
    11
    Views
    3,933

    Ok I think I got it. init_color() not required. ...

    Ok I think I got it. init_color() not required. On a term that supports 256 colors, it is as simple as that. I should have thought about it before. And most importantly, the terminal colorsheme is...
  10. Replies
    11
    Views
    3,933

    I am going to think about all this overnight...

    I am going to think about all this overnight now...
  11. Replies
    11
    Views
    3,933

    I have colors=256. echo $TERM xterm-256color...

    I have colors=256.

    echo $TERM
    xterm-256color
    -->display full color change on my last program post
    TERM=xterm
    echo $TERM
    xterm
    -->display color 0 to 7 only.
  12. Replies
    11
    Views
    3,933

    @Codeplug, I took your snippet, which works fine,...

    @Codeplug, I took your snippet, which works fine, and expended a bit to include init_color (lines 27 to 36). And this is when the colors of the terminal gets screwed up. The terminal supports 256...
  13. Replies
    11
    Views
    3,933

    @brewbuck Typing reset at the terminal does not...

    @brewbuck
    Typing reset at the terminal does not do anything. Also after the program exis, if I start Firefox, it does not get the focus automatically. it stays behind. Then when I type in an...
  14. Replies
    11
    Views
    3,933

    Ncurses restore color on endwin()

    My terminal colors are not restored to their original values in the Nothing Fancy File Manager I am working on. In order to troubleshoot this, I wrote the following:


    #include <stdio.h>...
  15. Bingo. :)

    Bingo. :)
  16. I got both.

    I got both.
  17. I think we are talking alike. So I am learning...

    I think we are talking alike. So I am learning git too and actually just notice that my .gitignore is not quite working like intented. I did something wrong.
  18. Soma, I use git and Github. My source code is...

    Soma, I use git and Github. My source code is on Github as per first post. :) I am rather new to this too I must admit.
  19. @manasij, Good to hear my methodology is not so...

    @manasij,
    Good to hear my methodology is not so bad. Interesting your mention about algorithms and data structures as I bought just a couple of weeks ago the books Algorithms in C. I did not...
  20. Hi SuperMiguel. As I was trying to explain...

    Hi SuperMiguel.

    As I was trying to explain above, I am learning C on my own and this little file manager is pretty much my learning platform. I don't use sophisticated IDE. Vim does the job for...
  21. Replies
    5
    Views
    1,306

    Do like me, start your own....

    Do like me, start your own. http://cboard.cprogramming.com/linux-programming/149652-how-i-have-been-learning-c-through-file-manager.html
  22. How I have been learning C: Through a file manager

    Please feel fee to move this to a different place as applicable.

    I have been poking around with C and Ncurses for a little while trying to learn, and came up with this little file manager I called...
  23. Replies
    7
    Views
    876

    Nope. He is dead serious. Ever played the game?

    Nope. He is dead serious. Ever played the game?
  24. You will probably start receiving help when your...

    You will probably start receiving help when your code is properly indented. At the moment you have colorful obfuscated code.
    As far as if a file exists, what have you read about the return value of...
  25. Replies
    15
    Views
    2,197

    @antred. Yes, my bad :-). I even double checked...

    @antred. Yes, my bad :-). I even double checked before I post, yet my brain did not see it that way this time.
Results 1 to 25 of 51
Page 1 of 3 1 2 3