Hah, oh, brewbuck posted while I was writing up my post.
Alright, thank you, brewbuck, I'll try that one
:)
Type: Posts; User: nine-hundred
Hah, oh, brewbuck posted while I was writing up my post.
Alright, thank you, brewbuck, I'll try that one
:)
Hmm.. I can try it, but why the division by two?
how I got mine was something like this (sorry I wasn't more clear):
(m - c) will be the number of unoccupied spaces on the line (e.g. if the...
Well, for simplicity's sake, let's assume a monospace type of font
Hey does any one know of a (preferably simple) formula for justifying text into a column? Or maybe someone can fix mine?
I have to write a prog in C to do this, I have the program all written...
Is there any way to specify classes you would allow a template to be used for?
For example, I want to allow about 3 (int, float, char) data types to be used for this one class, as what it does...
Hmm..have a good point there...what about embeding Perl in C++, is that doable without too much hasle?
that would work fine for the lower casing, but I wanted to do some other formatting as well in one big swoop, like tr allows...I might have to just parse it char by char though :(
I'm trying to parse certain text files and it would be easier if the contents where lower case with no punctuation, etc. So I was curious if c++ had anything similar to the unix tr command?
oh ok, thanks for the info...this is getting a bit complicated, I think I will have to research it some more before I can do what I want with it. Thanks again, very thorough
Hmm...I've looked around in quite a few places and I think I'm stuck.. Does any one know if there is is an option that I need to do to enable it at compilation? I'm using gcc...
I will change that...
Alright, after reading that I changed the code to make it more compliant (if I understood it properly):
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
int counter = 0;
void...
Hmm..alright, I'm new to this whole signal thing (as you can probably tell). Why is it bad to call library functions in handlers? The call to printf was just for debugging, to show that it was...
I'm trying to catch a floating point zero divide exception, but it doesn't seem to be working out and I can't figure out why the (minimal) code I have right now is:
#include <stdio.h>
#include...
I was going for with whitespace, that's a good idea though, might try that thanks, mate.
Hey, not exactly a programming question, but it pertains to a program I'm doing...hopefully not the wrong place for this ;)
Does anyone know where I can find the average number of characters per...
Meant to post this sooner but couldn't load the site up for some reason or another...
I also tried to do it with code randomly inject operators and varaibles, after some frustration, but like you...
Thanks, sorry about the misunderstanding... for anyone who still wants in, I'm going to be working on it again tonight...didn't get much farther last night than what was posted
Hey people, I've a challenge for whoever's up to it...
Here's the deal:
using the hex values:
AAAAAAAA
CCCCCCCC
F0F0F0F0
FF00FF00
FFFF0000