C++ :: Show Large ASCII On Screen?
Aug 26, 2013
I've written a Hexadecimal/ASCII chart, and would like to be able to show a larger version of the selected ASCII on screen. Is there a way to read the individual lines of bytes that make up a letter/symbol/number to show on screen.
|0|0|0|0|0|0|0|0| = 0
|0|1|0|0|0|0|1|0| = 66 O O ( These 'O' represent ASCII 219 )
|0|0|1|0|0|1|0|0| = 36 O O
|0|0|0|1|1|0|0|0| = 24 OO
|0|0|0|1|1|0|0|0| = 24 OO
|0|0|1|0|0|1|0|0| = 36 O O
|0|1|0|0|0|0|1|0| = 66 O O
|0|0|0|0|0|0|0|0| = 0
To make a large graphic X.
I'm using Microsoft 2012 Express, in the console. I don't feel comfortable yet programming in Windows mode.
View 10 Replies
ADVERTISEMENT
Jan 1, 2014
I am currently working out on a problem in which a c program is to be made which shows a large text file in parts.
f
For example: If file contains 200 lines. 50 lines will be shown on first page and user is asked to press any key to move to next page until EOF is found. user is allowed to return to previous page as well, and this is very complicated task for me. I tried to move cursor to a specific position using fseek etc but it page doesn't stop and reaches to end quickly.
View 1 Replies
View Related
Oct 29, 2013
I want to write a program that makes this output to appear on screen using for-loop :
0 0
1
2
3
4
5
1 0
1
2
3
4
5
2 0
1
2
3
4
5
3 0
1
2
3
4
5
I can't seem to make the correct logic/engine of this nested loop.
View 11 Replies
View Related
May 10, 2013
This is a small program that reads a line from the screen, takes the ASCII values from the entered text, and edits it. Next, the ASCII values are reinterpreted (am i misspelling?) as text, and displayed. However, my final output has (allways?) at least 7 characters, even if you enter only one. I'm also trying to accomplish, that the part of the string which isn't filled, will be printed empty. In spaces.
compiled with -std=c99.
Code:
#include <stdio.h>
int main(){
int maxsize;
printf("How long is your message?
[Code] .....
View 6 Replies
View Related
Nov 22, 2013
The aim will show on the screen but does not show the contents of a file on the screen different shows.
Code:
#include <stdio.h>
#include <conio.h>
main() {
char filename[100];
double xx;
int ii, kk;
[Code] .....
View 12 Replies
View Related
Feb 26, 2014
How do I print this without generating errors?
Code:
printf(" ||====================================================================||
");
printf(" ||//$///////////////////////////////$||
");
printf(" ||(100)==================| RESERVE BANK OF INDIA|================(100)||
");
printf(" ||$// ~ '------========--------' $//||
[code].....
View 8 Replies
View Related
May 7, 2013
I want to convert Hex:390041 to ascii "90A",
39: 9
00: 0 -->Null
41: A
i am getting only "9" in the bytearray,i know 0 is terminating the array
unsigned int bytes[3];
int j=0,counter=0;
char c[2];
[Code]....
View 1 Replies
View Related
Mar 31, 2015
I have some ascii characters in a char variable.ex - char buf[100]="ab*(z&";
So each of the char in that char array will have some hex value.ex- *'s hex value is '2a'.
And I have a long long int variable in which there is a 64 bit hex value.
ex- long long int k=0x0000888888888888;
Now i want to subtract the char buff's hex value in k. How to accomplish it.
That is 0x0000888888888888
- 0x000061622a287a26
= 0x000027265e600e62 (final result in a buffer or a long variable is okay)
Later i want to reverse the result as 26e006e56272.It should be stored in a variable such that i should be able to access each byte from it(ex- '72'(last 2 hex digits))
View 1 Replies
View Related
Aug 25, 2013
I know how to find find ASCII value of given character, but I am not getting how to find ASCII value of given string. For example I want to find ASCII value of string "HELLO",so how to do that.
View 13 Replies
View Related
Mar 4, 2013
how can I find ASCII value (0..255) of a character char in a string?
I have an array of char:
Code: char myarray[50]; and I need to have ASCII value of character eg myarray[10]. How can I do that?
View 1 Replies
View Related
Mar 15, 2015
I have to Write a program to produce that makes four triangles and a pyramid. I have to ask the user they height of the triangle and prevent the user from entering a height any larger than 25. It should look like this.
Enter the height of your triangle/pyramid: 3
***
**
*
*
**
***
*
**
***
***
**
*
*
***
*****
im having tourble with 3 and 4th and also pyramid.
HERES WHAT I HAVE SO FAR.
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main () {
int input = 0;
cout << "Please enter the height of your triangle/pyramid: ";
[Code] .....
View 2 Replies
View Related
Jan 26, 2011
I'm currently working on a project that utilitzes a Caesar Cipher. Basically, it reads input from a file and then, depending upon the input file, requires encrypting or decrypting. The cipher used to encrypt/decrypt simply adds/subtracts an integer from each character in the input file. All input is lowercase alphabetic characters (ASCII 97-122). My problem is trying to figure out how to wrap the ciphered characters, e.g., if the cipher require a shift of +5 and the character read was 'x', a shift of +5 to the right would produce 'c' (beginning with 'x' and counting up 5 letters: 'y', 'z', 'a', 'b', 'c').
I've written some crude and cumbersome loops that will work, but there has to be a better way. It is my understanding that it can be done using the modulus operation, %, but I cannot figure out how. I spent several hours trying to figure out the modulus approach, but no luck.
View 6 Replies
View Related
Feb 7, 2014
How can I convert bytes to ASCII?, I read wikipedia about UTF-8 and I understood a little bit about add or split bytes to change the value.
Now I have those bytes
0xC7 0xE6 0xC2 0x91 0x93 0x7B 0xCE 0x01
And I found a program (DCode) that convert to 64 bits little-endian, supposedly those bytes in ASCII is this.
lun, 08 julio 2013 04:28:17 UTC <---
View 3 Replies
View Related
Apr 6, 2014
I have a C program where I rapprendentare a table using a 10x10 matrix and create the chart with the game piece and the matrix in a spiral. I do not know how to start or even how to create the table with the ascii codes. is a task for school and I need to do it soon.
View 1 Replies
View Related
May 24, 2013
for an assignment we need to create basically a program that asks the user for the result of standard six-sided die rolls (numbers from 1 to 6). The program will prompt the user with "Enter a die roll or 0 to exit " for the first entry and Next die roll? for all subsequent entries. The program will continue reading die rolls from the user until the user enters 0. At this point, the program prints two newline characters (one blank line) and finally, the bar chart showing the number of times each die roll has been entered, and then terminates.If the user enters an invalid number, the program will just ignore it, and ask for another number. Only numbers 1-6 inclusive and 0 are valid.
Example output Enter a die roll or 0 to exit 6 Next die roll? 6 Next die roll? 7 Next die roll? 4 Next die roll? 0
[code].....
View 3 Replies
View Related
Nov 7, 2013
I am looking for a way to sort a string just by the alpha characters, not by the ASCII table. Therefore
string sort(string name) {
sort(name.begin(), name.end());
return name;
}
will not work. And I am looking for the most simple way to go about it!
View 7 Replies
View Related
Jan 26, 2014
I am making a text encrypter and I have to convert text into ASCII codes. I know how to convert a single character into ASCII -
#include <iostream>
using namespace std;
int main() {
cout<<"Text to ASCII converter"<<endl<<"Enter text to convert into ASCII - ";
char text; //defining input type, which is single character
[Code] ....
Try it here - URL.....Is there any way to run a similar program, which converts a string with spaces into ASCII code?
View 1 Replies
View Related
Jan 7, 2014
How to give input with text for this function.i already create function for this but i dn't know give input as non ASCII value(0-32) that Cobain with string or simple text.
View 1 Replies
View Related
Apr 20, 2014
this is my original code:
#include <iostream>
#include<fstream>
#include <string>
using namespace std;
string display(string);
main() {
[code]....
here is what it does;it reads from a text file and converts the characters to ascii numbers and stores them in 1D array.what I am trying to is storing these ascii codes in 2D array.
View 5 Replies
View Related
Apr 20, 2014
is there a function or something that take HEX and print it's corresponding ASCII Character ..
Here is my Code to take Character Array [4] and Print it's HEX to File ..
but i don't know how to reverse ! ?
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
int main(){
char buffer[4];
[Code] .....
View 1 Replies
View Related
Mar 25, 2015
I'm trying to write a lot of sample code to practice but I can not figure out how to take a string and sort each character in order of their increasing ASCII codes. I'm getting stuck trying to separate each letter to determine it's ASCII code. I know I have to use an array somehow, So far, this is my code:
#include <stdio.h>
#include <stdlib.h>
#define _CRT_SECURE_NO_WARNINGS
[Code].....
View 4 Replies
View Related
Sep 29, 2012
Converting ascii value entered by user.
How to convert it to float basic of c programming techniques only ....
View 2 Replies
View Related
Sep 23, 2014
The assignment is:
1) Write a program that asks the user for a a single character and two XY coordinates. The two X and two Y values should all be integers between 0 and 50. The character should be a printable ASCII character with values between and including ' !' (ascii value 33) and '~' (ascii value 126).
2) Your program should then draw a rectangle made up of the user selected character where the upper left corner is at X1; Y 1 and the lower right corner is at X2; Y2. Be sure to print the appropriate number of blank lines (having spaces in the blank rows is OK) in the beginning and pad each row of your rectangle with X1 leading spaces.
The Output is supposed to be similar to this:
(X1,Y1) = (0,0) , (X2,Y2) = (4,4), the character = ^
^^^^
^^^^
^^^^
^^^^
What I am having trouble understanding is printing between certain ASCII values (ASCII has never been discussed in class).
Another thing I am having trouble with is the main part of the assignment. From what we are currently discussing is loops and the assignment is covering nested loops. My code looks similar to this:
Code:
#include <stdio.h>
int main (void) {
int X1, Y1, X2, Y2;
char cRec;
printf("Enter a character: ");
scanf("%c", &cRec);
[Code] .....
My thinking on the assignment is that you want the X1 coordinate to increase to the value of X2 (same for Y1 and Y2). Is this thinking wrong?
View 12 Replies
View Related
May 28, 2014
Im programming a roguelike game using visual c++ Microsoft express 2010 and i made a multidimensional array for my first map. I have the walls as # and was wondering how i could turn those into ascii symbol 219. Also i need to know how to turn specific text certain colors.
View 5 Replies
View Related
Aug 30, 2014
I have a text file which contains ASCII of A,B and C like below,
65
66
67
Now I need to create a file which containing letters related with above ASCII like below, ABC
This is my code.
#include<iostream>
#include<fstream>
#include<string>
[Code]....
View 2 Replies
View Related
Apr 24, 2015
For a Texas holdem' project I need to be able to draw out rectangles using ASCII codes and for loops. I started the code
#include <iostream>
#include <string>
#include <Windows.h>
[Code].....
View 6 Replies
View Related