- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hey guys i'm new to visual basic and im trying to figure out where im going wrong. if you have any tip or a point in the right direction. i would be gratful thank you Public Class frmMain Public counter As Integer = 0 Public card1 As Integer Public card2 … |
|
HEY guys i have a question, i have a program that takes a string and then it gives three levels of encryption 1 to 3. i have no problem with the code as its working. its just when i compile it, if i choose option 1, i need to recompile … |
|
[CODE]void RemoveVowels(char *str) { int i = 0; int lenght = strlen(str); for(i=0;i < lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U') { str[i]=' '; } } } [/CODE] Hey guys having trouble trying to remove … |
|
Hey Guys im looking to remove vowels, im having trouble trying to remove them, any tip or help i would appreciate it thanks. [CODE]void RemoveVowels(char *str) { int x =0; int i = 0; int lenght = strlen(str); for(i=0;i=lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' … |
|
[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces(char *str); void RemoveVowels(char *str); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); RemoveSpaces(clear); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } … |
|
Guys i really need some help here with this function, in my program i enter string to to encrypt. from my function i want to delete all spaces, i'm really having problems here hope someone can tell me were im going wrong. thanks again. [CODE]#include <iostream> #include <string.h> #include <ctype.h> … |
|
Hey folks in my program is to encrypt a string.i then declared a function outside of the program to preserve the spaces which have been encrypted. but i dont know how to return my function to the main program to output the encrypted string with the spaces. cheers guys hope … |
|
[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void Removespaces(char clear[], char cipher[],int x,int i); void Removevowels(char clear[],char cipher[],int x,int i); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); // calling the … |
|
#include <iostream> #include <string.h> #include <ctype.h> using namespace std; int main() { char clear[200]; char cipher[200]; int x,i; cout<<" Enter a string:"; cin.getline(clear,sizeof(clear)); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } cipher[x] = '\0'; cout<<" Encrypted:" << cipher << endl; system("pause"); return 0; } Hey Guy i'm new to … |
|
Re:
Hello everyone, i am a current PHP programmer. I am wanting to start C++, is there any good websites i could start to learn? Or is there any tips for programming with C++? Also what is C++, what is it used fore etc.. Thanks, Marais |
|
#include <iostream> #include <string.h> using namespace std; int main() { char clear[200]; char cipher[200]; int x,i; int opt; cout<<"Encrypt (1) or Decrypt (2):"; cin>>opt; if(opt==1) //my problem is its not giving me option to enter string { cout<<" Enter a string:"; cin.getline(clear,sizeof(clear)); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; … |
|
Re:
[CODE] #include <iostream> #include <string.h> #include <ctype.h> using namespace std; int main() { system("Color 1A"); char clear[200]; char cipher[200]; int x,i; cout << "what do you want to do with your password " << endl; cout << "1 Encrypt your password " << endl; cout << "2 Decrypt your password … |
|
Re:
Im writting a very simple command-line. I want the > Charecter to come up every time a command ha finished what it's doing (easy) AND when the user presses enter with nothing on it. For example ($ is currssor) I want this: [CODE]> >$[/CODE] Not this: [CODE]> $[/CODE] How would … |
|
Re:
Pls i need fast help. |
|
#include <iostream> #include <string.h> using namespace std; int main() { char clear[200]; char cipher[200]; int x,i; cout<<" Enter a string:"; cin.getline(clear,sizeof(clear)); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } cipher[x] = '\0'; cout<<" Encrypted:" << cipher << endl; system("pause"); return 0; } Hey guys hope someone could help me, … |
|
#include <iostream> #include <string.h> using namespace std; int main() { char test[256]; int x,i; int vowels; cout<<"please enter a word"; gets(test); x = strlen(test); for(i=0;i<=x-1;i++) { if(test[i]!=' ') { cout<<test[i]<<endl; } if (test[i]=='a' || test[i]=='e' || test[i]=='i' || test[i]=='o' || test[i]=='u' || test[i]=='A' || test[i]=='E' || test[i]=='I' || test[i]=='O' || … |