Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Richard MacCutchan30-Jan-17 22:18
mveRichard MacCutchan30-Jan-17 22:18 
AnswerRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Member 1489195816-Sep-20 6:40
Member 1489195816-Sep-20 6:40 
QuestionProblem Creating C++ Console App Pin
Kevin Marois27-Jan-17 8:18
professionalKevin Marois27-Jan-17 8:18 
AnswerRe: Problem Creating C++ Console App Pin
Rick York27-Jan-17 8:28
mveRick York27-Jan-17 8:28 
GeneralRe: Problem Creating C++ Console App Pin
Kevin Marois27-Jan-17 8:41
professionalKevin Marois27-Jan-17 8:41 
GeneralRe: Problem Creating C++ Console App Pin
leon de boer27-Jan-17 17:09
leon de boer27-Jan-17 17:09 
AnswerRe: Problem Creating C++ Console App Pin
Patrice T28-Jan-17 13:17
mvePatrice T28-Jan-17 13:17 
Questionhelp me write a program Pin
Member 1296870327-Jan-17 3:13
Member 1296870327-Jan-17 3:13 
write a program that can be enter the password , if the correct password,the output will display "Your password is correct" if not the output will display "Your password is incorrect" and prompted to re enter a password.

this is my code but i still cant figure out what its prolblem.Confused | :confused: Confused | :confused:

#include <stdio.h>
int main()
{
int password=12345;
printf("Please insert your password:\n");
scanf("%p" , &password);

if(password=12345);
{
printf("Your password is correct");
}

if else(password!=12345);
{
printf("Your password is incorrect");
}

}

its say error expected '(' before 'else'..

kindly anybody can help me..please..

modified 27-Jan-17 9:56am.

SuggestionRe: help me write a program Pin
Jochen Arndt27-Jan-17 3:25
professionalJochen Arndt27-Jan-17 3:25 
GeneralRe: help me write a program Pin
Member 1296870327-Jan-17 3:52
Member 1296870327-Jan-17 3:52 
AnswerNo Pin
Chris Losinger27-Jan-17 3:41
professionalChris Losinger27-Jan-17 3:41 
AnswerRe: help me write a program Pin
Stefan_Lang27-Jan-17 4:15
Stefan_Lang27-Jan-17 4:15 
AnswerRe: help me write a program Pin
Richard MacCutchan27-Jan-17 4:57
mveRichard MacCutchan27-Jan-17 4:57 
GeneralRe: help me write a program Pin
Rick York27-Jan-17 5:05
mveRick York27-Jan-17 5:05 
GeneralRe: help me write a program Pin
Richard MacCutchan27-Jan-17 6:15
mveRichard MacCutchan27-Jan-17 6:15 
GeneralRe: help me write a program Pin
Rick York27-Jan-17 8:24
mveRick York27-Jan-17 8:24 
GeneralRe: help me write a program Pin
Richard MacCutchan27-Jan-17 8:41
mveRichard MacCutchan27-Jan-17 8:41 
GeneralRe: help me write a program Pin
Member 1296870329-Jan-17 5:08
Member 1296870329-Jan-17 5:08 
GeneralRe: help me write a program Pin
Richard MacCutchan29-Jan-17 5:51
mveRichard MacCutchan29-Jan-17 5:51 
SuggestionRe: help me write a program Pin
David Crow30-Jan-17 2:19
David Crow30-Jan-17 2:19 
AnswerRe: help me write a program Pin
Patrice T28-Jan-17 13:10
mvePatrice T28-Jan-17 13:10 
Questionhow do i write this program? Pin
Member 1296870326-Jan-17 0:03
Member 1296870326-Jan-17 0:03 
AnswerRe: how do i write this program? Pin
Jochen Arndt26-Jan-17 0:29
professionalJochen Arndt26-Jan-17 0:29 
GeneralRe: how do i write this program? Pin
Stefan_Lang26-Jan-17 19:58
Stefan_Lang26-Jan-17 19:58 
AnswerRe: how do i write this program? Pin
Patrice T28-Jan-17 13:15
mvePatrice T28-Jan-17 13:15 

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.