C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 11th, 2013, 06:43 PM
cg_gamer cg_gamer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2013
Posts: 1 cg_gamer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 19 sec
Reputation Power: 0
[Help] C - trouble with warning C4700

I've written a program using 2 functions. The first function has a variable with a value. So I want to use the value in the second function but failed. Warning C4700 pops out and I don't know what else to do. Please help.

PHP Code:
#include <stdio.h> 
#include <string.h> 

void Registration(int); 
void Status(int); 

int main() 

int i 3TRUE 0Identity_Number
char word1[20] = "test"//password declaration 
char word2[20]; /* Stores the second word */ 

do { 
i--; 
printf("Type in password: "); 
scanf("%s"word2); /* Read the second word */ 
if (strcmp(word1,word2) == 0

printf("You have entered identical words\n"); 

Registration(Identity_Number); // function Register() goes here 
Status(Identity_Number); // function Status() goes here 
TRUE 1

else if (
TRUE == && >0

printf("Wrong password!\n"); 
printf("You have %d more attempts\n",i); 


else
printf("Program terminate!!!\n"); 
}
while ( 
TRUE == && i>0);
return 
0


void Registration(int Identity_Number

printf("Please register your ID\n"); 
printf("ID number registration : "); scanf("%d",&Identity_Number); 

if(
Identity_Number>=1000 && Identity_Number<=9999

printf("Registration complete.\n"); 
printf("Welcome to AGG\n"); 

else 

printf("Invalid ID number - Registration"); 

return; 


void Status(int Identity_Number

if(
Identity_Number>=1100 && Identity_Number<=1200

printf("You are new.\n"); 
printf("Welcome to AGG\n"); 

else 

printf("Invalid ID number - Status");
 } 
return; 


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > [Help] C - trouble with warning C4700


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap