@Elysia
It's a very interesting idea, but I get a compile error in my prototype. I think I need a break.
Type: Posts; User: mariostg
@Elysia
It's a very interesting idea, but I get a compile error in my prototype. I think I need a break.
@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...
I have this in my header file:
public:
enum class Azimuth {NORD = 0,
NE = 45,
EST = 90,
SE = 135,
SUD = 180,
SO = 225,...
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...
@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...
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"
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.
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";
...
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...
I am going to think about all this overnight now...
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.
@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...
@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...
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>...
Bingo. :)
I got both.
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.
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.
@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...
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...
Do like me, start your own. http://cboard.cprogramming.com/linux-programming/149652-how-i-have-been-learning-c-through-file-manager.html
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...
Nope. He is dead serious. Ever played the game?
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...
@antred. Yes, my bad :-). I even double checked before I post, yet my brain did not see it that way this time.