B
b.stewart
I have only been using C++ for a few afternoons and i still get
confused at nearly every line i type so maybe someone here can help me.
Im trying to write a small program that can change a word/name into
ASCII decimal for each character you type on the ...'black screen?'
(dont know what to call it but i mean the screen that appears when you
press F5). I found a file (i think somewhere on this site?) that would
change a string of characters into binary using ASCII so i thought i
could modify it to only change the characters into ASCII.
After what is typed below i have no idea what to put next, is the whole
idea of using this char to binary file wrong or is there a way to
modify it?
any help would be greatly appreciated!
#include <iostream>
using namespace std;
#include <cstring>
#include <cstdlib>
char *entry, letter;
int ascii, len, total;
void prog();
int main()
{
entry = new char[50];
cout<<"Enter string to convert into ASCII (up to 50 chars): ";
cin.getline(entry, 50);
len = strlen(entry);
for(int i = 0; i<len; i++)
total = 0;
letter = entry;
ascii = letter;
}
???
confused at nearly every line i type so maybe someone here can help me.
Im trying to write a small program that can change a word/name into
ASCII decimal for each character you type on the ...'black screen?'
(dont know what to call it but i mean the screen that appears when you
press F5). I found a file (i think somewhere on this site?) that would
change a string of characters into binary using ASCII so i thought i
could modify it to only change the characters into ASCII.
After what is typed below i have no idea what to put next, is the whole
idea of using this char to binary file wrong or is there a way to
modify it?
any help would be greatly appreciated!
#include <iostream>
using namespace std;
#include <cstring>
#include <cstdlib>
char *entry, letter;
int ascii, len, total;
void prog();
int main()
{
entry = new char[50];
cout<<"Enter string to convert into ASCII (up to 50 chars): ";
cin.getline(entry, 50);
len = strlen(entry);
for(int i = 0; i<len; i++)
total = 0;
letter = entry;
ascii = letter;
}
???