Space as a variable

This may be a dumb question, but is it possible to set a space as a variable?
You'll have to be more specific about what you want. What you're asking makes no sense.

Unless you mean something like this:

 
int space;  // now 'space' is a variable 
Like this:
const char space = ' ';
This may be a dumb question

By the way, there are no dumb questions. However, if you think it may come of as "dumb" think about how to ask it in a clear and unambiguous way.
Last edited on
Sorry, didn't know how to phrase it but ya thats what I wanted, thanks.
think about how to ask it in a clear and unambiguous way.


To add onto this, I personally learn best by example, so when posting questions I try to give simple examples that show what I'm trying to do.

For instance in this case you could have given the below example:

1
2
3
4
5
6
7
// I want to do something like this:
cout << a_space;

// and have it do the same thing as if I did this:
cout << " ";  // (a blank space)

// how can I do this? 

Topic archived. No new replies allowed.