C program gets an invalid conversion in a function -


I have commented some error after this lesson, I do not know what the compiler is trying to say to me The last function to list is that I do not have a problem, the problem is that I want to ask the user for 2 characters, after which he will have to send it to a function that will give the string as a password and login Will compare if wire is equal The disease continues.

\\ Start the argument 1 of the initial consultant (1, four) \\

\\ Illegal conversion from four * to 'four' \\

  #include & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; #include & lt; String.h & gt; Invalid introducir_datos (Strict Agenda Client [30]); Zero mostly_data (Strict agenda client [30]); Four consultants (four logins, four passwords); Infrastructure agenda {four numbers [10]; Four epileodes [10]; Int Added; Four Terror [20]; Int codigo_postal; }; Int main (empty) {straight agenda client [30]; Int menu; Four elections [3], login [8], passwords [8]; ("\ N === Hola bienveno a newster agenda nc === \ n"); Say ("Login:"); Gets (admission); Says ("password:"); Gets (password); ** Consultant (login, password); ** While (menu! = 3) {puts ("\ nQue quieres hacer? \ N"); ("[1] Darts Datos \ n [2] Mostar Datos \ n [3] Sally Dell Programma \ n"); Scanf ("% d", and menu); Switch (menu) {Case 1: Introduction (data) (customer); break; Case 2: Most of the data (customer); break; Default: System ("CLS"); Puts ("~~~ option wrong" ~ ~ ~); }}} Zero introducir_datos (Strict Agenda Client [30]) {int x = 0; ("\ N === Bienvenido A La introduction database === \ n"); Fflush (stdin); System ("pause"); System ("cls"); ("\ N Diem El Noble: \ n"); Fflush (stdin); Gets (cliente [x] .nombre); ("\ NDiam Lepilido: \ n"); Fflush (stdin); Gets (cliente [x] .apellido); ("\ NDiamond: \ n"); Fflush (stdin); Scanf ("% d", & cliente [x] .edad); ("\ N Diem La Virus: \ n"); Fflush (stdin); Gets (cliente [x] .direccion); ("\ N timecode code: \ n"); Fflush (stdin); Scanf ("% d", & cliente [x] .codigo_postal); X ++; } Zero mostly_data (Structured Agenda Client [30]) {For (Int i = 0; I  

change you Consultant function (definition and implementation):

  int consultant (four logins, four passwords)  

For: (four log in, four passwords), then

  int consultar (char * login, char * password)  

For a single character, by calling it with the consultant (login, password); , you are using pointers (simplified interpretation) to pointers, you are getting the error.

Edit As the user points to "", you should decide that the function is a char or int , and both conform to the definition and implementation of both.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -