- #1
- 1,120
- 1
Just been introduced to the world of C++ as I'm taking a course on it in my maths degree. We are asked to write a simple program that takes in 3 numbers, sorts them in terms of order and then outputs them.
Not going to type my full program as that would probably be a waste of your time but here are the two important lines I am stuck on:
char qualifier1;
...
qualifier1 = "=";
And I'm getting the error when I try to compile this:
invalid conversion from `const char*' to `char'
Can anyone help me please, I'm not sure what this means and I am struggling to fix it.
Not going to type my full program as that would probably be a waste of your time but here are the two important lines I am stuck on:
char qualifier1;
...
qualifier1 = "=";
And I'm getting the error when I try to compile this:
invalid conversion from `const char*' to `char'
Can anyone help me please, I'm not sure what this means and I am struggling to fix it.