Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
char
- Page 1
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by Mr.M
char
ComputerName [MAX_COMPUTERNAME_LENGTH + 1]; DWORD cbComputerName = sizeof (ComputerName); if(GetComputerName (ComputerName, &cbComputerName)){ String^ pcname(ComputerName); label9->Text = pcname; }
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by Mr.M
Error can't convert
char
to Text when I output ComputerName to label Cannot convert parameter 1 from
char
[16] to system::String ^
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by Salem
> Cannot convert parameter 1 from
char
[16] to system::String ^ You need to convert your
char
array to a CLI string in…
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by Mr.M
I tried that but I get this error Error 14 error C2440: 'initializing' : cannot convert from '
char
[16]' to 'System::String ^' Regarding browser crashing, only with Dani its crashes on the other sites it doesn't crash
char to detect space
Programming
Software Development
18 Years Ago
by gamodg
…; My [COLOR="#ff0000"]name[/COLOR] is xyz ";
char
*q; q=strstr(p,"[COLOR="#ff0000"]name… will increment the ptr q and put it in a
char
array say str[] but how will i check for space…
Re: Char data type in while loop
Programming
Software Development
15 Years Ago
by Salem
>
char
a_char; Well you asked for only one
char
, and that's what you got. Consider a
char
array (or better, a [ICODE]std::string[/ICODE]) if you want to store many chars in the same object.
Re: char or varchar
Programming
Databases
11 Years Ago
by RomelynCastillo
… field to hold. The maximum value is 255. For example:
CHAR
(10) This field can then hold a maximum of ten… your text: "TEXT " "TENLETTERS" VARCHAR- Like
CHAR
, but the rest of the characters are not padded with…
Re: char or varchar
Programming
Databases
11 Years Ago
by pritaeas
Char
allocates a fixed length string as defined, whereas varchar uses a string length upto it's defined size.
Re: char **
Programming
Software Development
12 Years Ago
by Lucaci Andrew
…can do a 2x2 matrix out of a `
char
**`: #include <iostream> using namespace …row 3 #define col 3
char
** CreateCharMatrix(){
char
** matrix; matrix=new
char
*[row]; for (int i=…[i]; } delete [] matrix; } int main(){
char
** matrix; matrix=CreateCharMatrix(); for (int i=0;i…
CHAR[] Help?
Programming
Software Development
15 Years Ago
by turtlez
…...(more before) void getInput(int num){
char
= one[1];
char
= two[1];
char
= three[1];
char
= four[1]; ...(more after) saying… it is expecting something before the keyword "
char
" i am using Dev C++(Latest) as… had i as the following at one point:
char
[5]xxx; ((Example Variable)) Any and all help…
char help
Programming
Software Development
15 Years Ago
by kangarooblood
…include <iostream> using namespace std; int main() {
char
name; cout << "please type in your … <iostream> using namespace std; int main() {
char
name; cout << "please type in your …hello bitch, if I try to change the
char
name; to
char
name[30]; I receive a error message saying…
Re: char help
Programming
Software Development
15 Years Ago
by csurfer
[B]@skydiploma :[/B] [QUOTE]Use the function strcmp(
char
,
char
)[/QUOTE]Missing out on several things today ha buddy ??? Its [ICODE]strcmp(
char
*,
char
*)[/ICODE] for strings. ;)
Re: CHAR[] Help?
Programming
Software Development
15 Years Ago
by Ancient Dragon
There are two problems on each of those lines 1) one, two, three, etc are not defined in that function. 2) [b]
char
[/b] is a data type, but you failed to provide a variable name. For example [icode]
char
something = 1;[/icode] [edit]What ^^^ said too :)
Re: char help
Programming
Software Development
15 Years Ago
by Sky Diploma
You should either use a string from [icode]#include<string>[/icode] Or else Use the function [URL="http://www.cplusplus.com/reference/clibrary/cstring/strcmp/"]strcmp(
char
,
char
)[/URL]
Re: char help
Programming
Software Development
15 Years Ago
by Sky Diploma
Well it seems that "today is not my day" . Maybe its because of my anticipation towards the Wimbledon final. I am a big Roger Federer Fan!! However I just realised that it is [code] strcmp ( const
char
* , const
char
*); [/code]
Re: CHAR[] Help?
Programming
Software Development
15 Years Ago
by donaldw
… you're trying to do in that code, but "
char
" is a data type, so you're trying to…
Re: char help
Programming
Software Development
15 Years Ago
by csurfer
[B]Three small changes :[/B] [B]1>[/B]Use #include<string> in the beginning [B]2>[/B]Take name as [code=c++]string name;[/code]rather than
char
name. [B]3>[/B]Use "kevin" rather than 'kevin' in the check.
Re: char help
Programming
Software Development
15 Years Ago
by Sky Diploma
… Make name into a C-styled array as in [icode]
char
name[30][/icode] Then, you should use double quotes ("…
Re: char help
Programming
Software Development
15 Years Ago
by kangarooblood
… Make name into a C-styled array as in [icode]
char
name[30][/icode] Then, you should use double quotes ("…
Re: char help
Programming
Software Development
15 Years Ago
by kangarooblood
[QUOTE=csurfer;908691][B]Three small changes :[/B] [B]1>[/B]Use #include<string> in the beginning [B]2>[/B]Take name as [code=c++]string name;[/code]rather than
char
name. [B]3>[/B]Use "kevin" rather than 'kevin' in the check.[/QUOTE] Thank You, at last it works!!!
char
Programming
Software Development
14 Years Ago
by annitaz
…jmp start ; Start program execution 7 00000003 42524F574E20464F58
char
: db 'BROWN FOX' ; Please key in exactly…ah,02h 21 0000001D 8A16[0900] mov dl,[
char
+6] 22 23 jmp_: 24 00000021 7502…
Re: char **
Programming
Software Development
12 Years Ago
by NathanOliver
…. It is just an array of characters. A `
char
**` is and array of `
char
*` which is to say it is an group… different things. This is a good page for learning about
char
arrays http://www.cplusplus.com/doc/tutorial/ntcs/ this is…
char *
Programming
Software Development
13 Years Ago
by ram619
The output is 2011. Can anyone plz tell me how it is so ????[CODE=c]#include<stdio.h> #include<conio.h> void main() {
char
c[]="GATE2011";
char
*p=c; clrscr(); printf("%s",p+p[3]-p[1]); getch(); }[/CODE]
Re: char **
Programming
Software Development
12 Years Ago
by learner_new
thankx i got this.. but i have one more problem....what is a string exactly?? becoz getline(
char
**,size_t*,FILE*) it works as getline(cin,data); //where data is a string i.e. string data; however somehow i think string is not exactly
char
**.
char **
Programming
Software Development
12 Years Ago
by learner_new
> what exactly is
char
**?? how is it used in getline function?
Re: char **
Programming
Software Development
12 Years Ago
by WaltP
It's a *pointer* that points to a *pointer* that points to a *
char
* As for how it works, work it out. Draw a map of memory and see how it could possibly be layed out and used.
Re: char to detect space
Programming
Software Development
18 Years Ago
by John A
… C or C++? When I saw you using strstr and
char
arrays, I assumed we were in C. But file.eof…
char ** s = new[], char s[i] = new [], for (i < size) delete [] s[i] = Segfault
Programming
Software Development
18 Years Ago
by saishn
…public: aClass(); ~aClass(); bool addPattern(
char
* type,
char
* ptrn); private: int numPtrns;
char
** ptrnTypes;
char
** ptrns; }; aClass::aClass() …(ptrns, numPtrns); } bool aClass::addPattern(
char
* type,
char
* ptrn) {
char
* * typesHolder = 0;
char
* * ptrnsHolder = 0; if (…
Char array
Programming
Software Development
14 Years Ago
by iluwinter
… void readFunction(
char
,int&); void guessLetter(
char
&, int&); void checkLetter(
char
,
char
,
char
&, int&); int rightORwrong(
char
&,
char
&,
char
&, int…&); void printSolution(
char
, int&); int main…
Re: Char array
Programming
Software Development
14 Years Ago
by goldzero
…&); void checkLetter(
char
*,
char
*,
char
&, int&); int rightORwrong(
char
*,
char
*,
char
&, int&); void printSolution(
char
*, int&); int main() {
char
word[100], solution…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC