Huh, this is definitely more efficient.
Thanks for the tip on the macros, they're a force of habit.
Type: Posts; User: porialex
Huh, this is definitely more efficient.
Thanks for the tip on the macros, they're a force of habit.
How's this?
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <time.h>
#define PAUSE system("PAUSE")
#define CLEAR system("CLS")
That's exactly it.
Hmm... seems reasonably easier. I wasn't sure if I could get away with that.
I can't quite wrap my head around a good approach to to randomly printing a word (as a string of characters) into an already printed box of random letters. I figure this would all be done to a file,...
Thank you very much to Adak. The program runs correctly now (though I'll have to fix the sorting issue).
My compiler will run just fine. I'm using Code Blocks linked to MinGW.
As for the line:
if(strcmp(str[i], str[j]));
that was a last minute change in my code I forgot to reconcile. It was...
I'm trying to write a simple program that will (1) take in a set of user strings, (2) alphabetize them based on the first letter and (3) insert them into a text file.
I'm doing fine with (1) and...