41 Topics

Member Avatar for
Member Avatar for Gribouillis
Member Avatar for Gribouillis
0
499
Member Avatar for ShiftLeft

This will take a value in EAX or AX, convert to ASCII hex with optional padding and upper or lower case This example would yield "---fc103a" push word 0x222d ; 32 bit conversion, padd output with '-' push word ASCPntr ; Pointer to end of conversion buffer push 0xfc103a call …

0
399
Member Avatar for Tycellent

Hey everyone, I'm trying to convert some values to ASCII characters. I understand that this is possible through means of something like this: std::cout << (char)0x31 << std::endl; // prints 1 std::cout << (char)0x4C << std::endl; // prints L However, my problem is that i have char array that contains …

Member Avatar for マーズ maazu
0
288
Member Avatar for Doogledude123

Alright, so I am building a Converter to convert ASCII to Binary and for some reason, the for each loop stops working when it hits a space, and I have no idea why. I'm probably just over thinking it. Extra: Can you tell me how to force the output binary …

Member Avatar for Doogledude123
0
4K
Member Avatar for BenWard

Hello, I'm having some trouble with a £ sign, it's being displayed to the user as the <?> question-mark-in-a-black-diamond icon. I have an SQL Server database with a £ in a table. (Collation Latin_General_C1_AS which is analoguous to 8859-1) I have a PHP script which retreives this record without issue …

Member Avatar for BenWard
0
268
Member Avatar for Emma_3

I need the first and last names to be capitalized, so if the user inputs a lowercase, it'll change it to uppercase when it's displayed. But it's just the ASCII and I'm not sure how to fix it. Thanks! #include <iostream> #include <cctype> using std::cout; using std::cin; using std::toupper; char …

Member Avatar for Suzie999
0
216
Member Avatar for senokuza

#include<stdio.h> #include<stdlib.h> #include<string.h> #define sizeofhash 30 struct nsbh { char nama[100]; char norek[20]; char ttl[40]; char jk[20]; char alamat[30]; char kota[50]; char nohp[15]; int saldo; struct nsbh *next; }; struct nsbh bank; typedef struct nsbh atm; atm *hash[sizeofhash]; atm *a=NULL; atm *b=NULL; atm *c=NULL; //Nasabah bank; //Nasabah * pbank = …

Member Avatar for senokuza
0
282
Member Avatar for robert.knighton.79

I'm trying to take input keypress event and move the text it would have typed into a textbox to a different textbox instead. textBox1 has a length limit of 1 so I dont actually have to prevent text going into the box because the textbox is already full I just …

Member Avatar for robert.knighton.79
0
3K
Member Avatar for teo236

I am writting a simple C++ programm and I want to generate outputs to the console but with the functions 'fwrite' and 'printf'. However, I can't print special characters like 'á', 'é', ... Here is a simple code: printf("Special character: 'ñ'"); Were the output was `±` I found that those …

Member Avatar for tinstaafl
0
355
Member Avatar for jetro57070

how do you manually convert a multi digit ascii string into the hex equilavent of a decimal integer with out using a C library function. For instance If I have a small program asking a user to type into the keyboard a decimal number and lets say they type in …

Member Avatar for jetro57070
0
7K
Member Avatar for Labdabeta

Hi, I am wondering if there is a somewhat simple way to output extended ascii values in c. Basically I am thinking actually about unicode characters, stored in ints. Is there an easy way to do this, or would it require a custom gui console?

Member Avatar for Labdabeta
0
229
Member Avatar for fabrizio19

Dear forummembers, Well I am a total noob in visual basic programming, but I want to make a program that opens an ascii file that i choose and reads the file line per line. The ascii file excist as follow 0.0000 Start of measurement time id rx dlc b0 b1 …

0
118
Member Avatar for tedtdu

Dear all. please kindly but freely provide of your ideas and thought about following. I need to get binary bits of variety of files regardless of ASCII, Unicode, or even non-printable etc. I searched following seems to be commonly used but not for all. bits[i] = ((1<<i) & c) != …

Member Avatar for Labdabeta
0
249
Member Avatar for abhishekagrawal

Dear All, I have written a code to implement an algorithm for base conversion from decimal to any base between 2 and 36 given in RG Dromey. Below is my code and I have a few questions relating to it: [CODE] #include<stdio.h> #include<stdlib.h> int main() { int newbase,zero=atoi(0),q,ndigit=0,r,ascii,i; char newrep[100]; …

Member Avatar for thines01
0
271
Member Avatar for sridhar.selva

hi, i m doing a program now. in which i need to get ascii values like SOH, NUL etc from the serial port. i m getting the values as string. i don know how to process the ascii values to obtain the original values back. example my data is SOH …

Member Avatar for sridhar.selva
0
234
Member Avatar for man0987

is the following c++ code for printing the ASCII value of a number correct? [CODE]#include<iostream.h> #include<conio.h> void main() { int a=10; char ch[10]; ch=a; cout<<ch; getch(); } [/CODE]

Member Avatar for Tumlee
0
195
Member Avatar for deluksic

Well... im making some kind of graphic engine for console in [B]c++[/B], ASCII based, just for exercise... anyways, i was wandering, can i print text [B]faster[/B]? Right now i'm printing the whole map of characters (pix[160][120]) in a [B]single line[/B], so it is fast, however i need it faster cause …

Member Avatar for deluksic
-1
2K
Member Avatar for Wouto1997

[b]C# text encoder / decoder[/b] [i][u]Please note that I'm not a professional developer and I might make simple mistakes because of that, I'm also dutch, and 14 years old, so please keep that in mind before you reply. thank you C:[/i][/u] My brother came up with an idea to encode …

Member Avatar for Narue
0
520
Member Avatar for PrimePackster

Hello Guys, Well i have a problem, I coded a program to print the ascii table, then give the user a option to either convert character into ascii or ASCII to character. Well the latter is not working, and the loop to print the ascii table is having the same …

Member Avatar for PrimePackster
0
237
Member Avatar for VengefulToast

Hey forum, our professor assigned us a program we have to write in assembly language and I would love to have help on it. [QUOTE]Write an upper-to-lower case and lower-to-upper case conversion program. When the user inputs a letter, your program should convert it to upper case if it is …

Member Avatar for D33wakar
0
563
Member Avatar for guitarguy889

Hello Daniweb! :) I am brand new to this site, and wish I didn't need the help but I do! So let's give it a go shall we? I have a program I have been working on for about two weeks now, and I feel like it should not be …

Member Avatar for WaltP
0
187
Member Avatar for Kron

Ok, so basically I have an assignment in which I have to determine if what the user typed in is a number between 0-9, a letter or a symbol. The commands I can use are: [CODE]cout endl system("pause") system("cls") #include<iomanip> setw(#) setfill('ch') "\t" cin getline(cin,s) bool char int double string …

Member Avatar for Narue
0
232
Member Avatar for WhooeyBob

Hi, I am brand new to programming all together and was kind of thrown into a programming class without much help and I have struggled with my homework for this week. I have to create a code to write an ASCII table using Python 2.6 . Here is the actual …

Member Avatar for woooee
0
261
Member Avatar for techlawsam

Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol. Does this need knowledge of escape characters as well ? ("\t") would …

Member Avatar for techlawsam
0
236
Member Avatar for techlawsam

Ok so here is the problem... this is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DesignOutput { class Assignment { static void Main() { Console.WriteLine("CCCCCCCCCC"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CCCCCCCCCC"); Console.ReadKey(); } } } [/CODE] Im trying to match this: [CODE]CCCCCCCCCCC CC ## ## CC …

Member Avatar for techlawsam
0
279
Member Avatar for dionisov

Hello, I'm currently trying to figure out how I can get the information in ASE file and put it in my own arrays. Heres an example of ASCII scene export: [CODE]*3DSMAX_ASCIIEXPORT 200 *COMMENT "AsciiExport Version 2,00 - Fri Aug 26 13:58:27 2011" *SCENE { *SCENE_FILENAME "" *SCENE_FIRSTFRAME 0 *SCENE_LASTFRAME 100 …

Member Avatar for dionisov
0
585
Member Avatar for 3825

I would really like to be able to read notification emails on my phone (email to sms). However, my email preferences on daniweb are currently set to html, as far as I know. Could someone please help me change it to plain text? Is it even possible? Thank you.

Member Avatar for 3825
0
216
Member Avatar for Marceli

Hi, I am looking to find 3 and 5 digit characters convert into hex byte or word. For example 69 string represents 69 decimal and 45 hex. Then '6' = 36h and '9'= 39h. 43690 = AAAA example. I need done it in Freescale (motorola) assembly for my communication machine …

0
111
Member Avatar for magicsign

You can become crazy with this problem. Lets see this other quick solution to compare strings. Remember that strings are a sequence of bytes. home : h(first byte),o(second byte),...,e(last byte),0 a tag to identify the end of the string. Suppose you have a string inside a register : %esi and …

Member Avatar for Goalatio
0
301
Member Avatar for Lando_

The problem states to use a loop display character from the ASCII codes 0 through 127 and to display 16 character per line. I am using Borland C++ 4.5 so I need the older programming way of doing it. This is what i have so far. [CODE]#include <iostream.h> int main() …

Member Avatar for Lando_
0
1K

The End.