Ok, I understand conceptually what I have to do now but I am unsure of the syntax I will require. Thank you for your time.
Type: Posts; User: C89
Ok, I understand conceptually what I have to do now but I am unsure of the syntax I will require. Thank you for your time.
void formattingText()
{
int maxNoChars;
char inputSentence[maxFormattingTextSize];
printf("Formatting Text\n");
printf("-------------------------\n\n");
...
void formattingText()
{
int maxNoChars;
char inputSentence[maxFormattingTextSize];
printf("Formatting Text\n");
printf("-------------------------\n\n");
...
Whoops, thanks xD
Yeah I want to set the maximum width of the block of text to the integer the user inputs. So if it's say 20:
This :
Hello this is a sample paragraph well I'll just type some...
void formattingText()
{
int maxNoChars;
char inputSentence[maxFormattingTextSize];
printf("Formatting Text\n");
printf("-------------------------\n\n");
...