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
ADVERTISEMENT
Apr 30, 2013
How to convert string to currency type.
View 7 Replies
View Related
Nov 3, 2013
Code:
/*Currency Conv Control Module*/
#include <stdio.h>
#include "currencyconv.h" /* defines constants, declares functions */
int main(void) {
float us_dollars;
float currency;
int user_input;
[Code] ....
This is $$ converter program I created that is split up over 3 files. It takes the users input in US Dollars and converts it to the currency selected. When executing the program I am encountering a small problem. It actually isn't converting anything and returns 0.00 dollars.
I would like for it to convert the amount entered into the currency selected. I would also like to add in the print statement the type of currency the user has selected.
View 3 Replies
View Related
Jun 15, 2013
i have given a project for currency conversion program with add,delete,search,display option. but i was thinking if it can update the currency rate from internet at beginning.
View 3 Replies
View Related
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
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
Dec 30, 2014
I need to create a line chart that will be universal for every currency. As Y it will display value of currency, as X it will display time when that value was established.
For drawing I think of using Windows.UI.Xaml.Shapes.Line and Windows.UI.Xaml.Controls.Canvas
What I want to get is something like image below but it would have to draw correctly scaled chart for every currency which is the biggest problem(I think it is).
For every currency I will probably have to get minimal and maximal value which will be used to properly scale a chart(I will probably also have to get rendersize of canvas or something).
The user will choose the range of time and then the correct chart must be drawn (For example 04-11-2004 to 11-03-2007)
It is a windows store project.
View 4 Replies
View Related
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
May 7, 2013
how to add delete verify and print users in a login system.
View 8 Replies
View Related
May 17, 2014
[URL]
#include <iostream>
#include <string>
#include <conio.h>
[Code].....
the code use in above link is good but one problem i cant able to use backspace to remove mistake if user made any mistake he cant able to remove the mistaken character
View 2 Replies
View Related
Oct 7, 2013
I'm a novice with C programming and i have to solve an error in the following code. The code works like you enter a password called "uoc" and it shows as OK. But surprisely when you entered another password as "Cambridge" it works fine too.
I think that the problem is in the array declaration but i'm checking resources and no success!
Code:
#include <stdio.h>
#include <string.h>
struct {
char str[8];
char ok;
} data;
[Code] ......
View 3 Replies
View Related
Jan 10, 2015
I am trying to read a "password" from a file, the file only contains the password... Here is my code:
int i=0, ch;
char password[25];
FILE *fp = fopen("C:UsersOlintoDocumentsNetBeansProjects est.txt", "r");
if (fp == NULL)
printf("Erro ao Abrir");
[Code] ....
puts(password); When I read the string password, it outputs -> abcd123"
I don't know where it takes the (") because the password on the file is abcd123...
View 2 Replies
View Related
Jun 7, 2014
this is really important i searched an example code about "Username and Password Validation between Server and Client" through internet a LOT and i couldn't find anything..
View 3 Replies
View Related
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
Sep 9, 2013
Ive been working on a program that can mask the password and has 3 attempts. So far I can't do both at the same time. Here is my work. How can I do both?
#include<iostream>
#include<string.h>
#include<conio.h>
using namespace std;
int main() {
string _pass;
char input;
[Code] .....
View 3 Replies
View Related
Apr 20, 2014
I wanted to make an program which is sending messages to log in and password, but instead of message it gives me "System.Windows.Forms.TextBox, Text: AND HERE MY TEXT I WANTED.
View 9 Replies
View Related
Sep 14, 2014
#include<stdio.h>
#include<conio.h>
#include<string.h>
char str1[20], str2[20]="kent";
main() {
printf("Enter your Username: ");
scanf("%s",str1);
[Code] ....
View 1 Replies
View Related
Feb 24, 2015
What if I want to let the user know the number of trials left...? Like "2 attempts left", "1 attempt left"?...
View 1 Replies
View Related
Mar 6, 2015
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
[Code] ....
View 6 Replies
View Related
Dec 25, 2014
Okay, so I have a science fair project and I decided on doing a series of programs that show the simpleness behind hacking a password. Each program increases in complexity starting with a four digit password, and ending with a 10 digit letter and number combo that is case sensitive. Right now I need to figure out a way to have my program be able to convert chars into ints, so that I can do a counter and then I also need to be able to convert the ints, back into chars.
View 19 Replies
View Related
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
Jan 21, 2015
So I need to make a program that recieves a 10 letter only password, then once the password is entered, it starts off as AAAAAAAAAA...AAAAAAAAAB...AAAAAAAAAC...etc, Until it gets the correct password, which it then stops. This is for a science fair project on cyber security not for malicious purposes ...
View 2 Replies
View Related
Sep 2, 2014
void Log_In() {
system("cls");
gotoxy(30, 30);
time_t now;
time(&now);
[Code] .....
How to produce a password field with asterisk ****** .....
View 1 Replies
View Related
Dec 2, 2014
I am not sure how to do password hashing in c++ mfc dialog application. I am new to C++ programming.
View 2 Replies
View Related
Jul 28, 2014
I'm making a Project on a Travel Agency and I need to hide the password entered by the user! I am working on Xcode 5.1.1 -> Command Line Tools -> C++ on my MacBook Pro! Here is what I've tried --
string pass ="";
char ch;
cout << "Enter pass";
ch = getchar();
while(ch != 13){//character 13 is enter
[Code]...
But in the first case the display is -
//Assuming the password is Hello Hello ******
And in the second its giving me 3 errors -
1. Apple Mach-O Linker(Id) Error "_stdscr", referenced from:
2. Apple Mach-O Linker(Id) Error "_wgetch", referenced from:
3. Apple Mach-O Linker(Id) Error clang: error: linker command failed with exit code 1 (use -v to see invocation)
View 10 Replies
View Related
Feb 14, 2015
I am trying to make a program that asks for password when you try to open a file. I tried with that, obviously without success .
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main () {
ifstream file("test.txt");
string password;
[Code] ....
View 11 Replies
View Related