ok man tnx i will try
Type: Posts; User: epidemic
ok man tnx i will try
oh man :( I cant get it figured out
I am following this book and an asignment but I just cant figure the decryption part out! can anyone help?
/*
(Cryptography) A company wants to transmit data over the telephone,
but is...
isnt that supposed to be?
woops sorry, I did not interpret this the right way...
"Replace each digit by (the sum of that digit plus 7)"
following an english book when you have not mastered...
ok thnx, I got it now...
can I modify my program to run better? or is this pretty much what was expected from me?
#include <iostream>
int Encrypt (int value)
{
// compute seperate...
I dont quite understand how to use the modulo...
How should I work it to get each digit?
first digit, divide by 1000 but how do I get the second,third and forth one?
this is what I got till...
uhm the asignement is like this :
/*
(Cryptography) A company wants to transmit data over the telephone,
but is concerned that its phones could be tapped.
All of the data are transmitted as...
Uhm Im learning about control statements now....
If else while etc... although I already know about these because I also program some PHP... but PHP does not require to declare variable types...
Oh okay, thanks lol... should of figured that out myself I think
I am following this book and it wants me to encrypt a 4-digit integer that the user inputs.
so the user Inputs 4789 for example
now I want to perform actions on each of the digits separately....
yeah but when I started an empty project, i got this error about stdafx.h, thats why I was wondering about it.... tnx for your help guys
I installed Visual c++ compiler from microsoft yesterday.. I want to start building windows applications ... However I just do not understand the 'precompiled header' and such...
I need some...
2 diffrent variables can never have the same adress? :/ atleast i tought so.
EXCELLENT IDEA!!
C++ dead for Job?? :/ i tought they made loads of applications in c++...
i think that u are correct
It compiles with my compiler...
but tnx for your post... gave me some good ideas
Looking back, i am ashamed i posted this messy program ... it did work, and it did do what i wanted, but it still...
u can also read out blocks of 10 records ( times ) with the function, u give in the first record number, it finds the record, and then reads 10 records, because I wanted it to be easy to update, I...
It is readable. very readable if u ask me. once u know that goto MAINDRIVER just asks for input again for the main menu... whats so hard to read it? it just "restarts" the program..
oysterman, k...
LOL? i used goto 2 times as in GOTO MAINDRIVER and GOTO skip.
whats so bad about goto? lol why should i make the same function calls over and over on the end of an task u picked if i can just use...
it is still the first version, for those who want to help me learn c++, u can check it out and maby give me some tips or hints and Ideas for an upgrade :)
tnx!
this program is sort of an...
can i ask, what the diffrence between .bin files and .dat files are?
and i also solved my problem this way:
std::fstream WriteIt ("C:\Datacab.dat", ios::in | ios:ut | ios::binary );
but i can...
how am i supposed to write to certain locations then? ... all i know is ios::app
*edit* i have changed my program and now it writes at the right location... but i still dont know why
std::fstream...
I got a series of functions that are connected too eachother, and that write in a certain data file, but when I look into the data file, the data entered isnt where it is supposed too be! it always...
yea, im sorry i was just doing somthing fast.... didnt compile yet.
and tnx noir, but when i type in 1d => it also passes the loop , and that was my problem all along actualy lol :P
single...