Click here to Skip to main content
14,691,601 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 22:10
MemberKRISHNARAYALU16-Jun-13 22:10 
GeneralRe: COM Apartment Pin
Richard MacCutchan16-Jun-13 22:24
mveRichard MacCutchan16-Jun-13 22:24 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 22:35
MemberKRISHNARAYALU16-Jun-13 22:35 
AnswerRe: COM Apartment Pin
imagiro4-Jul-13 3:53
Memberimagiro4-Jul-13 3:53 
AnswerRe: COM Apartment Pin
Krishnakumartg13-Aug-13 7:53
MemberKrishnakumartg13-Aug-13 7:53 
Questionhow to export an enum type in an ATL prject Pin
astupidboy12-Jun-13 22:58
Memberastupidboy12-Jun-13 22:58 
AnswerRe: how to export an enum type in an ATL prject Pin
Jonathan Davies15-Jun-13 5:10
MemberJonathan Davies15-Jun-13 5:10 
QuestionHere is a C Program showing some Error, Give some solution Pin
Member 969295410-Jun-13 5:03
MemberMember 969295410-Jun-13 5:03 
#include<stdio.h>
#include<conio.h>

int *val1,*val2;
int *oper;

void calc(val1,val2,oper)
{
switch(*oper)
{
case '+':printf("%d",*val1+*val2);
break;

case '-':printf("%d",*val1-*val2);
break;

case '*':printf("%d",*val1 * *val2);
break;

case '/':printf("%d",*val1 / *val2);
break;
default:printf("invalied input");

}
}
void main()
{
int num1,num2;
int oper1;
printf("Enter 2 number and an operator\n");
scanf_s("%d%d%d",&num1,&num2,&oper1);
//fflush(stdin);
calc(&num1,&num2,&oper1);
_getch();
}

it is showing all of the following ERRORS

Error   2   error C2017: illegal escape sequence    c:\users\lina\desktop\project7\project7\source.cpp  33  1   Project7
Error   1   error C2448: 'calc' : function-style initializer appears to be a function definition    c:\users\lina\desktop\project7\project7\source.cpp  8   1   Project7
Error   3   error C3861: 'calc': identifier not found   c:\users\lina\desktop\project7\project7\source.cpp  33  1   Project7
    6   IntelliSense: variable "oper" is not a type name    c:\Users\Lina\Desktop\Project7\Project7\Source.cpp  7   21  Project7
    4   IntelliSense: variable "val1" is not a type name    c:\Users\Lina\Desktop\Project7\Project7\Source.cpp  7   11  Project7
    5   IntelliSense: variable "val2" is not a type name    c:\Users\Lina\Desktop\Project7\Project7\Source.cpp  7   16  Project7

AnswerRe: Here is a C Program showing some Error, Give some solution Pin
Richard MacCutchan10-Jun-13 7:03
mveRichard MacCutchan10-Jun-13 7:03 
AnswerRe: Here is a C Program showing some Error, Give some solution Pin
Krishnakumartg13-Aug-13 8:05
MemberKrishnakumartg13-Aug-13 8:05 
Questionstd::map and error checking Pin
bkelly139-Jun-13 11:42
Memberbkelly139-Jun-13 11:42 
AnswerRe: std::map and error checking Pin
Garth J Lancaster9-Jun-13 14:18
professionalGarth J Lancaster9-Jun-13 14:18 
GeneralRe: std::map and error checking Pin
bkelly139-Jun-13 15:16
Memberbkelly139-Jun-13 15:16 
AnswerRe: std::map and error checking Pin
Richard MacCutchan9-Jun-13 22:23
mveRichard MacCutchan9-Jun-13 22:23 
AnswerRe: std::map and error checking Pin
MicroVirus11-Jun-13 13:07
MemberMicroVirus11-Jun-13 13:07 
Questionstatus display in a dialog Pin
bkelly139-Jun-13 6:17
Memberbkelly139-Jun-13 6:17 
AnswerRe: status display in a dialog Pin
Garth J Lancaster9-Jun-13 15:53
professionalGarth J Lancaster9-Jun-13 15:53 
Questionstd::map, fundamental get started problem RESOLVED Pin
bkelly139-Jun-13 5:04
Memberbkelly139-Jun-13 5:04 
AnswerRe: std::map, fundamental get started problem Pin
xenotron9-Jun-13 5:19
Memberxenotron9-Jun-13 5:19 
GeneralRe: std::map, fundamental get started problem RESOLVED Pin
bkelly139-Jun-13 5:46
Memberbkelly139-Jun-13 5:46 
QuestionCFileException, discover reasons RESOLVED Pin
bkelly138-Jun-13 11:05
Memberbkelly138-Jun-13 11:05 
AnswerRe: CFileException, discover reasons Pin
Richard MacCutchan8-Jun-13 22:40
mveRichard MacCutchan8-Jun-13 22:40 
GeneralRe: CFileException, discover reasons RESOLVED Pin
bkelly139-Jun-13 4:54
Memberbkelly139-Jun-13 4:54 
GeneralRe: CFileException, discover reasons Pin
bkelly139-Jun-13 7:11
Memberbkelly139-Jun-13 7:11 
GeneralRe: CFileException, discover reasons Pin
Richard MacCutchan9-Jun-13 10:23
mveRichard MacCutchan9-Jun-13 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.