C++ is a compiled general-purpose programming language that adds object-oriented features and other enhancements to the C language, which it is largely a superset of. It is popular for both embedded and PC software development.
Questions tagged [c++]
220 questions
-1
votes
3 answers
I have an error saying: expected unqualified-id before 'if'
int pirsensor = 0;
const int ledpin=11;
const int soundpin=A2;
const int threshold=200;
void setup()
{
pinMode(13, OUTPUT);
pinMode(2,INPUT);
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
pinMode(soundpin,INPUT);
}
void…
user309233
-3
votes
1 answer
Error: argument of type "cons char *" is incompatible with parameters of type "LPCWSTR"
I am writing a code in Visual C++ to access serial port of a computer.
Code is given below:-
#include
#include
#include
#include
#include
#include
using namespace std;
//#include…
Saad Rafey
- 123
- 1
- 8