L
lino
Hello,
I have the following string:
const char plaintext[] = "Fourscore and seven years ago our \
fathers brought forth upon this continent \
a new nation, conceived in liberty, and dedicated \
to the proposition that all men are created equal.";
when i step through this the variable plain text looks like this:
Fourscore and seven years ago our fathers brought forth upon
this continent
a new nation, conceived in liberty, and dedicated
to the proposition that all men are created equal.
so when i go to print it displays as it is above...not pretty!
However if i declare plaintext in this fashion:
const char plaintext[] = "Fourscore and seven years ago our fathers
brought forth upon this continent a new nation, conceived in liberty,
and dedicated to the proposition that all men are created equal.";
(in an editor it would appear on one line) there are no gaps in
plaintext.
how can i use the line break "\" for aesthetics in the editor and not
have the spaces or how do i remove the spaces.
Also i am trying to print plaintext with no more than 60 characters
per line and no word can be broken when starting a new line.
example:
on printing the word liberty if it happens to exceed 60 characters at
the "b" then the entire word needs to be printed on the next line.
hope all this is clear.
Thanks,
Lino
I have the following string:
const char plaintext[] = "Fourscore and seven years ago our \
fathers brought forth upon this continent \
a new nation, conceived in liberty, and dedicated \
to the proposition that all men are created equal.";
when i step through this the variable plain text looks like this:
Fourscore and seven years ago our fathers brought forth upon
this continent
a new nation, conceived in liberty, and dedicated
to the proposition that all men are created equal.
so when i go to print it displays as it is above...not pretty!
However if i declare plaintext in this fashion:
const char plaintext[] = "Fourscore and seven years ago our fathers
brought forth upon this continent a new nation, conceived in liberty,
and dedicated to the proposition that all men are created equal.";
(in an editor it would appear on one line) there are no gaps in
plaintext.
how can i use the line break "\" for aesthetics in the editor and not
have the spaces or how do i remove the spaces.
Also i am trying to print plaintext with no more than 60 characters
per line and no word can be broken when starting a new line.
example:
on printing the word liberty if it happens to exceed 60 characters at
the "b" then the entire word needs to be printed on the next line.
hope all this is clear.
Thanks,
Lino