声明字母数字 [英] declaring alpha numeric
本文介绍了声明字母数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何声明一个应该包含alpahabets和
数字的变量。它不应该是字符串或char数组。
how to declare a variable that should contain both alpahabets and
numbers.It should not be an string or char array.
推荐答案
shan写道:
如何声明一个应该包含alpahabets和
数字的变量。它不应该是字符串或char数组。
how to declare a variable that should contain both alpahabets and
numbers.It should not be an string or char array.
结构可以同时容纳各种类型。
-
pete
A structure can hold various types simultaneously.
--
pete
shan写道:
shan wrote:
如何声明一个应该包含alpahabets和
数字的变量。它不应该是字符串或字符数组。
how to declare a variable that should contain both alpahabets and
numbers.It should not be an string or char array.
你的问题不是很清楚。你的意思是这样吗?
int foo =''a'';
foo = 123;
>
整数变量foo可用于保存字母或数字,是
你想要的是什么?
>
-David
Your question is not very clear. Do you mean like this?
int foo = ''a'';
foo = 123;
The integer variable foo can be used to hold a letter or a number, is
that
what you are after?
-David
shan写道:
如何声明一个应包含alpahabets和
numbers.It不应该是字符串或字符数组。
how to declare a variable that should contain both alpahabets and
numbers.It should not be an string or char array.
int i;
i =''a'';
i =''0'';
S.
int i;
i = ''a'';
i = ''0'';
S.
这篇关于声明字母数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文