Mmm, there's a lot to sort out here (including the void main already pointed out).
1. Which Language is it written in
#include <iostream.h> // This says C++
#include <stdio.h> // This says C
Looking through the code, I see inline variable declarations, so its C++
2. Which operating system is it for
#include <conio.h> // This says DOS
#include <windows.h> // This says windows
> int index;
index is a reserved identifier - it is the name of a function in string.h. If you wanted to call that function from within this code, you'd have a problem.
> //Pointers that point at the ' ' char, so i can actually parse the line //
> asciinum = 32;
> pointer = &asciinum;
> spacechar = *pointer;
You can remove two lines, and just say
> userinputscreen:
The appearance of a label is never a good sign
> //This part of the code lacks something to stop it, because i couldnt set up pointers to do it. //
Yeah, it can be replaced by one line.
Code:
fgets( userentry, sizeof(userentry), stdin );
You seem to be trying to read in a word at a time. It's better to read the whole line in one go (using fgets()), then you can parse the char array as many times as you want in order to decide what it means.
In addition, your code has no exit condition (other than filling up the buffer), at which point if prints an error and bumps into another no-no.
> main();
You should never call main recursively. A while loop is more appropriate here.
> if (userentry[index] = spacechar){
This is an assignment, not a comparison. Use == to compare values.