C/C++ :: Too Many Initializers In MikroC For PIC

Dec 29, 2013

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.

View 2 Replies


ADVERTISEMENT

C/C++ :: Too Many Initializers - Cannot Convert From Double To CStock

Nov 6, 2014

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] ....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved