Thread: Help me! problem in reading and accepting Fullname

  1. #1
    Registered User
    Join Date
    Feb 2013

    Question Help me! problem in reading and accepting Fullname

    So im having trouble, im just a beginner programmer and still learning. Im having trouble in reading my full name in just a single variable and some kind of authentication. this is my code by the way.

    #include <stdio.h>
    int main(void)
          char NAME_MINE1[40];
    void clrscr();
           printf("Enter Full name: ");
           if(NAME_MINE1=="Qwerty You Tube")
                go to Phase2;

    What im trying to do is:

    if i enter my full name i will be able to go on to the next statement/command but when i put on some name (which is not mine) i will automatically get an error and exit the program.

    If i type "Qwerty You Tube" EXACTLY and not just the first string before the whitespace i will be able to proceed but when i enter "Qwerty Tube You" or "Qazse Qop Queen" i will get an error and the program will exit.

    am i doing something wrong or what ? Is what i want even possible ? im so confused right now im seaching for answers for hours! and to no avail ( Please help me ((((((

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Also here ->
    Please don't cross-post.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. no accepting my loop
    By Reggie Green in forum C++ Programming
    Replies: 2
    Last Post: 10-29-2012, 08:04 PM
  2. getchar() not accepting 'ans' value
    By Zaheer Attar in forum C Programming
    Replies: 4
    Last Post: 09-10-2011, 01:42 PM
  3. Problem accepting a character
    By babu in forum C Programming
    Replies: 7
    Last Post: 08-27-2007, 12:26 AM
  4. problem with accepting password
    By babu in forum C Programming
    Replies: 3
    Last Post: 07-23-2007, 06:42 AM
  5. accepting +123 help
    By peanut in forum C Programming
    Replies: 7
    Last Post: 11-01-2006, 11:48 PM

Tags for this Thread