C/C++ :: Too Many Initializers In MikroC For PIC
Dec 29, 2013I have problem in mikroC for PIC, while declaring any of the variable with SBIT data type.
Error is "TOO MANY INITIALIZERS"
I am using an IC of PIC16F722A.
I have problem in mikroC for PIC, while declaring any of the variable with SBIT data type.
Error is "TOO MANY INITIALIZERS"
I am using an IC of PIC16F722A.
So I'm trying to run this program and I get 2 errors:
error C2078: too many initializers & error C2440: 'initializing' : cannot convert from 'double' to 'CStock'
Seems to have something to do with "no suitable constructor exists to convert from "const char[5]" to "CStock".
Stock.h:
#ifndef Stock_h
#define Stock_h
#include <string>
using namespace std;
class CStock {
public:
static string Company;
static string Symbol;
[Code] ....