C++ :: Possible To Make A Simple Log In System Without The Use Of Database
Aug 28, 2013
i am trying to make a simple log in system without the use of database or whatever it is called.
my only concern is this
cout<<"enter password:";
cin>>pass;
how would i be able to make the characters appear as **** rather than the actual character that i would type as i am typing my password in CIN? or is it even possible?
View 5 Replies
ADVERTISEMENT
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
Jul 28, 2014
I am making a console based database system. Because I have to keep inserting, editing , deleting data blocks from my record file I have decided to use either vectors or list to store the all records. From the file I shall read the entire vector/list and work with it to add , remove or edit record and then again write the entire vector/list to the file again. I figured it would stop all the weird things that happen when directly working with the file. Is it an efficient way ?Or is it totally unnecessary ?Is there a better way?
View 2 Replies
View Related
Mar 16, 2014
I'm building a simple system management console application. I've abstracted the console "Menu" and derived from it a "WelcomeMenu" class with public inheritance.
The problem is that when instantiating a Menu* object and assigning it a new WelcomeMenu...I'm still not able to use WelcomeMenu's "ShowWelcomeMessage() with the Menu* object. Instead, I get "error: Class 'Menu' has no member function call 'ShowWelcomeMessage().' Which is true, but I thought a pointer-to-Menu object should be able to use the public methods of derived classes without casting in this case. Code follows.
// Menu and WelcomeMenu Classes
#ifndef MENU_H
#define MENU_H
#include <ctime>
#include <iostream>
#include <string>
[Code] .....
I get a compiler error when running this simple program:
#include <iostream>
#include <ctime>
#include "Utilities.h"
#include "Menu.h"
using namespace std;
[Code]....
View 2 Replies
View Related
Aug 22, 2014
Which is best option to save images in database or file system, I am developing c++ server client app. I want to save the images in server using file system or database. I am confusing to choose which option?
View 5 Replies
View Related
Sep 26, 2013
I have to write a program that simulates a handheld gaming system. a system can have power toggled so its either on or off. when the system is on, its volume level can be raised or lowerd. a system has minimum volume level of zero and a maximum volume level of 10. a system stores games.
// simple game menu
//simulates a handheld gaming system
using namespace std;
class Game {
public:
Game(int GameNumber = 3, int volume = 10);
[Code] .....
View 1 Replies
View Related
Aug 9, 2013
I wrote an application with wpf and c sharp. And I use ado dotnet framework to connect the database. Now the problem is I want a centralize database for the application. And I hav e installed sql server on one of the which I want to serve as server. I now want all other clients to be able to connect to the database through local area network. how will I do that?
View 2 Replies
View Related
Feb 12, 2014
I would like to know how can I make a simple program .exe so that I don't have to open it through code blocks every time.
View 2 Replies
View Related
Nov 26, 2013
I am using SFML CodeBlocks and OpenGL i am not very good in OGL ...
i want 2 know how to make a simple 3d Cube with OGL ...
View 1 Replies
View Related
Oct 2, 2013
when it comes to programming. I was trying to make a simple letter guessing game where the user has 6 chances to guess the letter V. The command prompt works fine until the user enters 'y' to play. It repeats my HIGH & LOW statements twice before letting me guess again. It's all a mess.
View 2 Replies
View Related
Feb 27, 2014
So I made a code that shows a simple rectangle. How do I make it move using data structures? :)
Code:
#include "Glut_Setup.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <time.h>
using namespace std;
float P1= -5;
float P2= 2;
[Code] .....
View 2 Replies
View Related
Apr 20, 2013
i want make a setup for C# program with SQL data base but i can not . i use installshield but i have error in connection to database in execution program.
View 32 Replies
View Related
Jul 6, 2012
I am busy with a project, it is going to consist out of 3 different windows which is logic enough for this whole code to be interactive.
It must be able to pull data into a windows form, displaying it into a textbox, and when you click on the textbox it needs to open up another window where you will have a windows form that will display data as the code loops through the questions in the database.
I am not sure how to push the data that has been selected on the database to the next window..
Here is my code for the first window:
;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form {
//SqlConnection myConnection = new SqlConnection("Data Source=(local);Initial Catalog=KnowledgeEssentials;Integrated Security=SSPI");
//int intType = 0;
public Form1()
[code].....
With the second window the data in the table needs to be displayed and each row from the table needs to have a checkbox next to them, so that if the check box is checked, the relevant information of the checked row will show up in the 3rd window... so MY question is, HOW do I pull that data from that specific database and let it show in the listcheckbox?
View 1 Replies
View Related
Nov 18, 2014
#include <iostream>
#include <string>
using namespace std;
[Code].....
This is my code, when my pintrials = 0, my system cannot terminate but go through the option menu below.
View 1 Replies
View Related
Nov 7, 2013
So, as far as I can tell, this code should run a system command from the C++ program:
system("ping 192.168.1.2 /t /l 32768");
However, I just keep getting a "system Was not declared in this scope" error message. Is there something wrong with this?
View 1 Replies
View Related
Apr 10, 2014
I'm having some problems with implementing an AI. It should be just a simple AI that follows player. Here is the code that I got so far:
(float)DirectionX = Circle->GetX() - AI->GetX();
(float)DirectionY = Circle->GetY() - AI->GetY();
(float)Hyp = sqrt(DirectionX * DirectionX + DirectionY * DirectionY);
DirectionX /= Hyp;
DirectionY /= Hyp;
x += DirectionX * 3;
y += DirectionY * 3;
This is what I got so far. It creates a vector in a direction I want to move, then just normalizes the vector. Simple as that. But I'm having 2 problems..
AI moves towards player only when Im at like the end of screen and the AI is on the other side, I must keep a certain distance for it to be able to move towards me. Basically, its not constantly moving towards the player. I also tried it with trig, using atan2 for angle and sin / cos for speed. Also didn't work, same result.
The other problem is when I want to add i.e 5 more AIs. For each new AI it creates, it makes a new update.. So, to kinda clear it up. If I'm in middle of the screen and an AI is spawned above me, it will move towards me. But when after that one, 2nd AI spawns beneath me, both 1st and 2nd AI move up. Basically, previous AIs take the update from last one that is created. For updating I'm using lists, objects and iters.
View 3 Replies
View Related
Jul 21, 2014
How do I play a simple mp3 through my mic. I plan on using this to just play annoying sounds through skype and games(on windows 7 btw).
View 6 Replies
View Related
Mar 27, 2014
I am working on a project that is like a banking system and needs to include making a withdrawal, transaction, deposit, query, and transaction.
Code:
#include <stdio.h>
//#define true
//#define false
//assume there is money in the account. $10,000
void deposit(){
[Code] ....
View 1 Replies
View Related
Mar 1, 2013
I just started my task with Ordering system. what should I use if I'm going to ask the user if he wants to exit the system, he will press(zero)0 to exit the program and press Y(uppercase or lowercase) to continue?
View 1 Replies
View Related
Aug 2, 2014
Here's the objective of the program: "Instead of using ABCDEFGHIJ to order letters use DCBAJIHGF go order. The program should determine which 4-letter word is larger of two based on this new ordering system."
Not even sure how to start with this problem , how would I go about defining my own ordering system?
View 1 Replies
View Related
Apr 17, 2013
So I know that I can call a program by system("prog.exe"), but what do I add in when I want to pass a parameter?
View 2 Replies
View Related
Jun 2, 2013
Computerized GPA Evaluation System using Array
You are required develop a computerized GPA evaluation system of your class using array. The basic idea is to calculate the GPA (Grade Point Average) of each subject and then calculate the GPA of whole semester of all the students of the class and on the basis of that GPA calculate the grade and remarks of each student of the class. Suppose that the total students of the class are 50. Your system must also provide the facility of the following:
1.Searching a student result according to his/her roll number.
2.Updating the obtained marks of the students in case of any mistake in entering marks.
3.Display the result of student who is the topper of the class
4.Display the result of the student who got minimum CGPA out of the class.
5.Display how many number of students got greater than or equal to 3.0 CGPA.
6.Display how many number of students got greater than or equal to 2.00CGPA and less than 3.00.
7.Display the total number of students who got A grade in the semester.
8.Display the total number of students who got B grade in the semester.
9.Display the total number of students who got C grade in the semester.
10.Display the total number of students who got F grade in the semester.
Detailed Description:
You are required to take the student’s marks for four subjects (Programming fundamentals, Calculus, English and Computing) as input from the user at runtime. After that calculate the GPA of each subject and the whole semester. Assume that total marks of a subject are 100 and each subject is of 3 credit hours except programming fundamentals. Programming fundamentals subject has 4 credit hours.
Complete Assessment system is given below in the table:
S.#Percentage (%)GradeGPARemarks
185-100A4Excellent
280-84A-3.75Very Good
375-79B+3.50Good
470-74B3.0Satisfactory
565-69C+2.50Above Average
660-64C2.0Average
755-59D+1.50Pass
850-54D1.0Just Pass
9Below 50F0Fail
Table: Assessment Scheme
•Percentage of a subject = (obtained marks / total marks) * 100. Percentage works to find the grade of the student.
•GPA of whole semester = multiply GPA of each subject according to the percentage of obtained marks by the number of credit hours for that course, sum up the GPA of all the subjects, and then divide this sum by the total number of credit hours taken in semester.
For example suppose the GPA in subject X is 2.5, in subject Y 2.6, and in subject Z is 3. Assuming that each subject is of 3 credit hours then GPA of whole semester will be calculated as:
GPA= (3 * (2.5 + 2.6 + 3)) / 9
GPA= 2.7
On the basis of Semester GPA, you have to give grade and remarks to the student. You have to study the above table for other types of remarks according to grade.
•If a student has less than 50 marks in a subject, a message should display that “you have to repeat this subject “.
Code:
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
main() {
char a,b,c,d;
[Code] .....
View 6 Replies
View Related
Apr 4, 2013
I just purchased Visual C++ 2010 Ultimate, to start my coding experience. Whenever I try to debug, it gives me this error:
The system cannot find the file specified
It can't find the .exe file, I even Googled it, and tried a few things, without any luck.
View 2 Replies
View Related
Apr 22, 2014
I code login form. In the textbox I want to clear if there are some text or close form if there's nothing. The problem is System beep sound occured when the text is cleared. Here's my code
private void tbPassword_TextChanged(object sender, EventArgs e)
{
string _enteredPassword;
while (tbPassword.TextLength == 8)
[Code]....
View 2 Replies
View Related
Apr 26, 2014
I wanted create a Reminder Systems for my Project
So Scenario is like this,A Gym has owned a Software to maintain record of employee and customer, everything is ready now only reminder system is to be made. Reminder system is like for example if customer comes to gym and inquires about plan and fees and says call back him at so and so time, so receptionist will require reminder system to alert him at the time given by customer for call back.
What i have done
1.Created a Listview to show reminder list, and created two button ADD reminder and DELETE reminder When reminder is added following things are added in Reminder table in Database
i.ID
ii.Title
iii.Message
iv.Time
v.Date
2.when i display the reminder table in reminder listview, the order will be in (Date, time)asecnding order.
---Till here everything is done---
Now i am confused here, lets take example The first Reminder in Listview is around 3.00 clock, when the time is reached i want to show message that "call back this customer".
So to do this i was thinking of using timer and on each tick compare Current time with Reminder time, if equals display message, but this method is inefficient it can freeze my UI.
The Alternate way i was thinking to run this timer inside Background worker as it would create a different thread there will be no issue with my application.
View 5 Replies
View Related
Jun 29, 2014
I can't debug anything and get an error whenever I try. Being able to release a program to run it works sometimes, but it's hit or miss. I've created a very simple program to show the problem. The error on the screen is a result of me trying to debug, but I actually received the same error when trying to release as well.
View 6 Replies
View Related