The DoEverything Function Challenge

closed account (18hRX9L8)
Hi guys, I have an outline for a DoEverything function.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* C++ Public Libraries */
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

/* C++ Private Libraries */
#include "DoEveryThing.h"

/* Function: Do Everything(string whatyouwanttodo) */
static void DoEverything(string whatyouwanttodo);

/* Function: Do Everything(string whatyouwanttodo) */
static void 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.

Good luck and happy programming!
~Usandfriends
Last edited on
This should be a good placeholder until your program is done.
1
2
3
4
5
6
#include <iostream>

int main()
{
    std::cout << "Do it yourself." << std::endl;
}

closed account (18hRX9L8)
Yeah, I am doing this myself but for those who want a challenge and are bored, I put this thread up.
Last edited on
There's a misunderstanding. The "do it yourself" part wasn't directed at you.
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.
Last edited on
Topic archived. No new replies allowed.