Thread: login and password & printing

  1. #1
    Registered User
    Join Date
    Nov 2006

    login and password & printing

    I'm trying to write a program that simulates a login module. Thus far the only thing I've found is conio.h, getch(), and putch() for the password masking. However, I can't get the program to let me verify the login or the password.

    With another program, how would I create a print method like MS Words label printing.

    Raithe Davion

  2. #2
    Registered User
    Join Date
    Mar 2006
    Have you tried actually using the native API... conio is so twentieth century. I'm betting you use Turbo C++ as well, or some equally antiquated variant.

    No offense. It's just that it's harder to help people who use old, nonstandard library functions.
    #include <stdio.h>
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  3. #3
    Registered User
    Join Date
    Nov 2006
    Its only a console application and I use VS 2005. As for the native API, I'm fairly new at C++ and when i searched for password masking and verification, conio.h was the only one that appeared. I haven't done any windows programming or MFC, but plan to once I've learned all the basics (classes, pointers, etc).

    Thanks for the link to the API tutorials

    Raithe Davion

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A tenet connection from a C program..
    By ahmd2080 in forum Linux Programming
    Replies: 2
    Last Post: 07-04-2009, 03:42 AM
  2. simple login program problem
    By suckss in forum C Programming
    Replies: 11
    Last Post: 11-11-2006, 05:02 PM
  3. How to create login and password?
    By sherwi in forum C Programming
    Replies: 10
    Last Post: 04-11-2006, 09:54 AM
  4. Security Login Daemon
    By curlious in forum C++ Programming
    Replies: 7
    Last Post: 04-29-2005, 03:31 PM
  5. login script - URGENT!!!
    By linzeeuk in forum C Programming
    Replies: 5
    Last Post: 05-05-2003, 02:26 PM