/* C++ Public Libraries */
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
/* C++ Private Libraries */
#include "DoEveryThing.h"
/* Function: Do Everything(string whatyouwanttodo) */
staticvoid DoEverything(string whatyouwanttodo);
/* Function: Do Everything(string whatyouwanttodo) */
staticvoid DoEverything(string whatyouwanttodo)
{
Search(whatyouwanttodo,"google.com"); /* Searches for string */
GetNeededMaterials(whatyouwanttodo); /* Downloads needed libraries, programs, code, etc... */
RunProgram(CreateProgramUsingDev("C:/Dev-Cpp/Dev C++")); /* Creates the program. */
getchar(); /* Need help creating these functions. */
}
/* Main Program */
main()
{
/* The DoEverything function.
* --------------------------------------------
* Use: DoEverything(string whatyouwanttodo)
* --------------------------------------------
* Overview: Searches how to do things and
* creates a program using any needed
* libraries/functions.
*/
string anything;
printf ("What would you like to do? ");
anything=GetLine();
DoEverything(anything);
}
I guess this is a challenge. Anyone who can create this program is genius. I will work on this too, but I am a noob and I'm pretty sure others will surpass me.
Although I like the idea of a program that figures out what you want to do and writes a new program to do it, it's bordering on impossible, especially the way you seem to want to implement it.
There are programs that can solve any solvable problem expressed in formal logic, but this is different. I don't see how Google search would help you. Also, how can you be sure that a compiler is even available? Also, Dev-C++ isn't a compiler.