C++ :: Add Delete Verify And Print Users In Login System?

May 7, 2013

how to add delete verify and print users in a login system.

View 8 Replies


ADVERTISEMENT

C++ :: Login System Which Load Data From Dat

Apr 20, 2014

I am trying to make a log in system which load data from a .dat .... So I have a part of code below

if(radioButton1->Checked)//Login {
String ^ userAC = textBox1->Text;
String ^ userPW = textBox2->Text;
char ACc[300];
char PWc[300];

[Code] ....

I built it and it is a success but when i run it, it have error: Debug Assertion Failed!

Program:....
File:....Microsoft Visual Studio 10.0VCincludexstring
Line: 930

Expression: invalid null pointer
.......

What is going wrong so i try to comment some part to debug. I found that it come form the code

string AC(ACc);
string PW(PWc);
String ^ ACstr;
String ^ PWstr;
MarshalString(ACstr,AC);
MarshalString(PWstr,PW);

I tried to use std::string and System::string when getting data from .dat but it failed so i tried char array.

View 2 Replies View Related

C++ :: New User Login System Error

Mar 18, 2013

I cant seem to be able to make a new user and i cant seem to log in it just says invalid login.

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<fstream>
#include <string>
using namespace std;
void welcomeScreen() {

[Code] ....

View 14 Replies View Related

C++ :: Login System And Simple Menu With 3 Options

Oct 16, 2013

I need a program that has a login system and then a menu that has 3 options: Add, delete and exit. If I choose Add it wil ask for certain data of 5 students.

Then after registering the 5 students, another menu with the options: Search, Delete and exit. In search it will ask for an ID and then prints all the data of a single student. Delete gives me the option to delete the data of any user I choose.

View 1 Replies View Related

C/C++ :: Operating System Written Can't Print Out Lines?

Nov 12, 2014

I'm taking an operating systems class and I'm trying to write a script that would execute a program in Simple OS.I"m not sure if this is the right place for this because although the entire OS is written in C, "asm" are assembly language code. Anyway when I run the OS in virutal box and try to run a program, I get a "Fatal Execption" in a loop until the entire OS crashes. So then I try to debug my code BUT when I add printf statements and try to run the code again I don't get to the "fatal execption" and the entire OS just crashes. 1) why can't I add print lines? 2) what's going on with the fatal execption?

////////////////////////////////////////////////////////
// Loads program and executes it in user mode
//
#include "kernel_only.h"

[Code]....

View 3 Replies View Related

C/C++ :: Print Rows Of Ascending Digits - Delete Other Ones

Dec 14, 2014

That is sequence "aasdf123456785fg87" will be transformed into "aasdf12345678fg". I need to do this task in two variants: at once using getchar and putchar and then with strings. The object is done, but I think it could be done more easier. My codes:

(1)
char flag = 0;
while ((c = getchar()) != '.')
{
if (isdigit(c))

[Code]....

View 5 Replies View Related

C++ :: Verify Password And Convert Currency

Nov 14, 2013

How to make a program to enter password and if password right I can change the curency. I only want to change from ringgit malaysia to us dollar.The program can convert currency many times.I only want to use stdio.h

#include <stdio.h>
void main() {
int pass;
printf("Input your password");
scanf("%d",$pass);
if (pass==4782)

[Code] ....

After this what should I put to complete this program?

View 2 Replies View Related

C++ ::  How To Verify If A String Equals A Certain Word

Apr 3, 2013

I want to see if the value of a string equals a certain text. But I can't make it. There are two problems :

1) It seems 'tolower' doesn't work with strings. What to use then?
2) When I delete tolower, it works, but I have an output of "You didn't enter 'add'" even when I do enter 'add'. What's the problem? Is it due to the null byte? What to change?

#include "stdafx.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[]) //This was added automatically by Visual Studio.

[Code] .....

View 3 Replies View Related

C++ :: Program To Verify That Name Only Contains Alphabetic Characters?

Dec 1, 2013

I am working on a program where i prompt the user for his/her name and i have to verify that the name only contains alphabetic characters.

here is my coding. It works to an extent i just can't get it to work the way it is supposed to.

#include <iostream>
#include <cstring>
using namespace std;
const int SIZE = 50;
int main()
{
char name[SIZE];
cout << "What's your first name?" << endl;

[Code]...

when someone types in a name with only alphabetic characters it outputs valid name for how long the name is. For Ex: bob is three characters so it would output valid name three times. also when you put in a name with a number or character at the end it outputs valid name for the correct characters but also outputs the invalid character and invalid name which its supposed to do. the valid name should not be showing up though.

View 2 Replies View Related

C Sharp :: How To Make Graph And Verify Its Properties

Apr 30, 2013

I want to make such application in which user make directed graphs along with relations between them. After that application show that which graph properties are proved in this graph e.g Reflexive, Irreflexive, Symmetric, Anti Symmetric, transitive etc

View 1 Replies View Related

C++ :: Program That Ask The Users To Input 4 Different Numbers

Nov 30, 2013

Make a program that will ask the users to input 4 different numbers. After the user’s input the program will display the formula on the next line. Next line would be the presentation of the formula which the variables were substituted by the inputs from the user, then returns the average of the numbers entered. **All inputs are integers except average which is float with two decimal places.

View 5 Replies View Related

C++ :: Using Array To Enter Number Of Users And Their Data?

Dec 10, 2014

I have a small program to calculate the value of salary. I want to user to be able to enter more than one user using array and finally calculates the average salary of all users.

Here is the code

Code:
#include <iostream>#include <conio.h>
using namespace std;
int main() {
const int months=3;
double net_pay;
string EmpName;

[Code].....

View 2 Replies View Related

C++ :: Structures - Keeping High Scores Of Users

Jun 1, 2013

Write a program that allows a user to enter high scores of a game, keeping tracking of the name of the user and the score. Add the ability to show the highest score for each user, all scores for a particular user, all scores from all users, and the list of users.

This is the program I am trying to write, however I am having difficulty storing the users name and high score, I know I need to store an array for the score but getting confused because of the structure. (By the way I have to use structures as it is a problem from the structures chapter of the ebook I am doing). Below is my code so far. .

Code:

#include <iostream>
#include <string>
using namespace std;
struct highScore
{
string user;
int score;
int highestScore;
int allScores;

[Code]...

View 9 Replies View Related

C/C++ :: Change Data Based On Users Input?

Feb 7, 2014

Player is given choice of x number of Races This choice changes the player's base stats. Then player is given a choice of x number of Classes (archer, warrior, etc.) This choice determines how the player's stats will change upon leveling up.

#include <cmath>
#include <iostream>
#include <ctime>

[Code]....

View 7 Replies View Related

C :: Count How Many Negatives And Positives Are Based On Users Input

Oct 5, 2014

I just don't understand how you would have it count how many negatives and positives there are based on the user's input? Here's the problem and the code it provides:

Modify the program so that is displays the average of the positive and negative numbers. (Hint: be careful not to count the number 0 as a negative number.)

Code:

#include <stdio.h>
#define MAXNUMS 5
int main() {
int i;
float number;
float postotal = 0.0f;
float negtotal = 0.0f;

[Code]...

View 6 Replies View Related

C++ :: How To Create Final Executable File That Can Upload For Users

Feb 16, 2013

I develop a software using QT 5 open source IDE. Now my question is two-fold:

1. How can I create the final executable file that I can upload for my users? I understand that runtime DLLs shall be required and I have tried Enigma Virtual Box software for bundling runtime files. It does create the file that I can execute from any folder in my PC. However, surprisingly when I transfer that "boxed" file to another PC, it does not run. Both the PCs have Windows 7 installed on them.

2. Secondly, I see possible future issues with Antivirus Softwares. Apparently when I try to run the boxed exe file, it gets rejected by the Antivirus Software on my PC. Is there a way in which I can get my exe file verified/checked/registered by the Antivirus Softwares so that my users don't face any problems in executing the program.

I cannot afford the QT commercial licence, but I am prepared to buy any economical "setup file generating" software (if it exists).

View 1 Replies View Related

C# :: Authorization Of Users - Assigning Availability Of Certain Class Functions?

Apr 11, 2014

How to 'assign' the availability of certain Class functions to groups of Users.

Let's say we have a Library with certain functions: get book, read book, add book, delete book, etc...

I want to have Users Admin, Mgr, User, Guest be assigned the privilege to run these various functions.

Any ways to implement these functionalities to various Users?

View 7 Replies View Related

C++ :: Allow Users To Enter Any Two Positive Numbers And Then Display Results - Arithmetic Operators

May 14, 2013

The Program must allow users to enter any two positive numbers and then display the results.

#include <iostream>
using namespace std;
class ArithmeticOperators{
private:
int x;
int y;
public:
void set_values();

[Code] .....

View 2 Replies View Related

C :: List - Why Delete Function Doesn't Delete

Dec 9, 2014

I have to manage a Clinic. I need to delete a booking (for example, if John said he's coming on March 22nd at 15:30 but then he say he's not going to come, I have to delete that booking so another person can use it).

idSearched: the id of the person that is not going to come. I have a lot of specialties and each one has a list. So I ask for the speciality to delete the node (the node contains John's booking). If I don't find it, I return (-1). searchSpecByID return a pointer to the list where the speciality is. So head will point to the first node of the list. In nodeToDelete I have the node I want to delete.

The program detects OK when is the first in the list and when not, but it doesn't delete the node.

Code:

typedef struct bookingList{
tSpecialty specialty;
struct nodo* intro;
} tList;

[Code].....

View 7 Replies View Related

Visual C++ :: Open Large Files - Save Video As Long As Users Have Space In Hard Disk

Jan 15, 2013

Opening large files in c++. In my application, i am trying to save video as long as users have space in harddisk. What I am trying to do is when user is recording video i am trying to append the video data in to the file. The problem is that every time file size reach over 2GB my software crashes.

View 5 Replies View Related

C++ :: How To Create Login ID And Password

May 30, 2014

"How to create login id and password" because i have to submit this assignment next weeks i dont know how to using passing by value or reference corectly/

For the Ouput its say this :

1>ClCompile:
1> GILA DAH!!.cpp
1>d:computer programmin ditg 1113jiwa ku sakitjiwa ku sakitGILA DAH!!.cpp(21): error C2664: 'strlen' : cannot convert parameter 1 from 'char' to 'const char *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>
1>Build FAILED.

#include <iostream>
#include <string>
using namespace std; //introduces namespace std
void length(char[]);

[Code]...

View 1 Replies View Related

C++ :: Login With TXT Writing / Reading

Oct 28, 2013

I have to make a program that asks for your username (any)to register it. When you type it it will say something. I want to create a txt file also. so this is what I have:

#include <iostream>
#include <fstream>
using namespace std;
int main() {
int a;
{
ofstream myfile;

[Code] ....

now, how can I use the cout again to print something "Welcome to the program..."?

View 1 Replies View Related

C++ :: How To Separate Login For Admin And User

Feb 2, 2014

How to compare the username and password entered by user with the data(username and password saved in before) in the admin array and customer array,

so for example when it match the username and password in the admin array, it will directs the user to the admin_mainmenu(), otherwise it directs to the customer_mainmenu().

#include <iostream>
#include <fstream>
#include <string>
using namespace std;

char username_admin[10];
char password_admin[10];

[Code] ....

View 1 Replies View Related

C++ :: Creating Login (username And Password)

Oct 6, 2014

I am trying to create a login that accepts a user login and password. it should accept 3 tries in which when the user enters their username the system should tell whether if the username is correct if not it should display a message saying invalid username and directs the user to register like entering their dob and name. But I cannot seem to get this part run correctly.

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
void main() {
char userId[10];
char passwrd[10];
int p = 0;

[Code] .....

View 18 Replies View Related

C# :: Create Account And Login To Windows?

Mar 18, 2014

I want to create user account and login to windows. I have to read username from DB and create window user for login to window. So,Can I create windows account and login to windows with C#

View 8 Replies View Related

C/C++ :: How To Separate Login For Admin And User

Feb 2, 2014

How to compare the username and password entered by user with the data(username and password saved in before) in the admin array and customer array,

so for example when it match the username and password in the admin array, it will directs the user to the admin_mainmenu(), otherwise it directs to the customer_mainmenu().

#include <iostream>
#include <fstream>
#include <string>
using namespace std;
char username_admin[10];
char password_admin[10];

[Code] ....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved