153 Topics

Member Avatar for
Member Avatar for sah

I have a c# form application with a text box and a button. I type Chinese character in the text box and press the button to assign the input to a string using the following code [CODE]String chineseChar = Textbox1.Text ;[/CODE] // TextBox font property: Arial Unicode MS or SimSun …

Member Avatar for sah
0
452
Member Avatar for vnorbi

Hello everyone! I'm making a tetris program, and now I'm stucked a bit. I have to use the simple getch() function, but in a special way. I need to use it for exact time, and when the time is up, I need to break the function, even if I haven't …

Member Avatar for WaltP
0
225
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
Member Avatar for Armistice

Hi. Another newbie here looking for some insight. I have a menu drivin program with 5 functions. got first 3 down and the 4th wants me to read a plain text fil and output the length of the longest line. I know as far as getline(infile,str). where str is just …

Member Avatar for Armistice
0
454
Member Avatar for EarendurRingern

im making a program that loads a collection of strings from a file. then the user need to search the keyword using a binarysearch, but im using strings in my program, how to make the program using array of characters? here's my code, thx before :) [code] #include <iostream> #include …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for iluwinter

Hello, I'm fairly new to C++, and I am currently doing a CS assignment, which is to create a hangman game. The only problem i'm having so far is that i'm getting an error when i try to pass a char array to a function (invalid conversion from 'char*' to …

Member Avatar for vidit_X
0
141
Member Avatar for tKc

I have to write a program that reads a text file that contains +/- values and characters and outputs any invalid characters (anything that is not an +/- integer) and also at the end i have to have it print out the total number of how many invalid characters there …

Member Avatar for tKc
0
83
Member Avatar for hasanzia

I am a beginner & I need to implement this program which states that I have to reverse whatever is given in input via pointers... For Example: i) Input: This is reverse order program Output: program order reverse is This ii) Input: This is exercise eight Output: eight exercise is …

Member Avatar for kes166
0
1K
Member Avatar for wikinick

Hi, For a school assignment, I have to make a game of BlackJack using VB2008 Express. I have decided that in the login screen, the user will select his name from a listbox, and then type his password into a text box in order to get to the game screen. …

Member Avatar for Pha
0
112
Member Avatar for onus

I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I have experimented many things but I am unable to catch the …

Member Avatar for N1GHTS
0
196
Member Avatar for widapol

Hi all, I got a problem with this question: Read the string "hello" include the NULL character in the end of string. How can I do it ?

Member Avatar for zark_yoc
-1
231
Member Avatar for Pado

Every once in a while I run into this problem and finally decided to consult the experts. :) I insert foreign characters (Czech letters) into my MySQL database and see them there. They look fine. But when I try to retrieve them using PHP they come out with question marks …

Member Avatar for Pado
0
248
Member Avatar for P00dle

Hi Daniweb. I'm using a file mask (eg '*.txt') to filter filenames in a program that I'm writing. It gets the file mask from an .xml settings file. Currently the mask is '*.xml', and the code I'm using to filter this is like this: [CODE]Pattern.matches(fileMask, fileName);[/CODE] The exception that is …

Member Avatar for P00dle
0
4K
Member Avatar for kadams

I need to count characters from a file. But I get an error error C2660: 'getchar' : function does not take 1 arguments. Im new to C please bare with me. Thanks for your help. #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" int _tmain(int argc, _TCHAR* argv[]) { int …

Member Avatar for kadams
0
137
Member Avatar for pawan_sharma777

How to declare an array to store the different five(5) name and initialize the following char array with {"Lara","Lin","Nitin","Krishna","Sophia"}

Member Avatar for pawan_sharma777
0
94
Member Avatar for Sucesso

Here's the situation: I have a dictionary database. I use special characters in the pronunciation (like this: 'hÉ™.lÉ™.ba.lu). However, when I use a PHP script to output this data, the special characters get replaced with question marks. Like this: 'h?.l?.ba.lu I've read a lot on this topic, but I'm not …

Member Avatar for Sucesso
0
1K
Member Avatar for seanvitalaim

Hello everyone. I am very embarrassed to post my code cause some might think it is horrible since my experience level is low. But I am having a problem. First I want to add that i have tried placing [CODE]import java.lang.String[/CODE] in the code but no go. Thanks in advance …

Member Avatar for NP-complete
0
136
Member Avatar for midget66

I' working on an array where the user inputs characters(up to 80). I then need to output the characters, one per line, until the string is null. My problem is in the while loop i think, im just not sure what to do from here. Any ideas? [CODE]#include <stdio.h> void …

Member Avatar for kings_mitra
0
105
Member Avatar for echellwig

Hi, I'm trying to replace an item in a list I made with 0. [CODE]popdata[0][5].replace(0.02,0)[/CODE] when I run this it gives me the error TypeError: expected a character buffer object. I was wondering what this error meant and how I would go about fixing it. Thanks! Elise

Member Avatar for echellwig
0
573
Member Avatar for benqus

Hello! =) I have a big problem here, with PHP charset stuff. My mysql is utf8_hungarian_ci , but the php shows me only '?' and ?inDiamond signs. I guess the PHP's working incorrectly, because my MySQL returns my records just fine. Any solutions? =) Thank you!

Member Avatar for benqus
0
201
Member Avatar for Brandlax

Ok, since i am a graphic designer, i've started to make some characters in illustrator, and i want to sell those, does anyone know a good site where i can do this? it would be really helpful!

Member Avatar for Brandlax
0
220
Member Avatar for 7h3.doctorat3

Hi i'm new to using c++ and i would like to ask if you could help me out. I have to somehow get a working c++ program that will allow me to convert any one, two or three digit positive integer into words using string/array method. Say, 111 will be …

Member Avatar for mrnutty
0
489
Member Avatar for mtech91

/*Hello, I am to create a program that gets a character and if it is uppercase, convert it to lowercase, if it is numeric print an error. I wrote the following code but my problem is that when I ask the user if he/she would like to quit, and I …

Member Avatar for Fbody
0
257
Member Avatar for benqus

Hello again! I need your help again, people! =) So here's my problem: This line replaces only the first "\n" spec. character in my textarea, and this way everything's screwed up... I'm sending the replaced content of the textarea through AJAX to the server, in a GET method. I've tried …

Member Avatar for benqus
0
162
Member Avatar for pinknblu

It's saying I have 6 errors. Need help, please..or a push into the right direction. Thank-you. :) [CODE]#include <iostream> #include <cctype> using namespace std; int Len_String(char *); int CountCapitals(char *); int CountVowels(char *); int main() { char msg[] = "Strayer - what a University !"; char msg2[] = "Programming is …

Member Avatar for pinknblu
0
133
Member Avatar for miss_kruse

I'm having some trouble finding a place to put this question, since I don't have any insight in coding. Please let me know if the thread is misplaced, and I'll move it. Question: I have an idea of an app for iPhone/any smart phone and before I move on with …

Member Avatar for Talguy
0
113
Member Avatar for Ryujin

Greetings! I'm trying to make [URL="http://faculty.kutztown.edu/rjensen/charcoun.htm"]this tool[/URL] for some fellow librarians who answer questions via text messaging. As you see beneath that page's text box, the catch is that the PC-to-SMS client treats the forward slash as [I]two[/I] characters. I'd like if possible for the JavaScript character counter to recognize …

Member Avatar for Ryujin
0
380
Member Avatar for newbiecoder

I want my code to take two characters and print them, but this code only takes one character, prints it and terminates, can you please tell me what's wrong with it? Thank you. [code=syntax] #include <stdio.h> int main() { char a, b; scanf("%c", &a); scanf("%c", &b); printf("%c %c\n", a,b); return …

Member Avatar for newbiecoder
0
251
Member Avatar for richman0829

isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" …

Member Avatar for richman0829
0
290
Member Avatar for MacUsers

Greetings everyone!! First of all, I'm a python newbie; my apology in advance if I'm being silly with my question but I really hope some one can help me on this. I got myself a project (just to start) to read iTunes library .xml file - iTunes Music Library.xml - …

Member Avatar for Pupo
0
684

The End.