小编Ner*_*era的帖子

C++验证有疑问

#include<iostream>
using namespace std;

void main()
{

    char fname[11]; 
    int x = 0; 

    cout << "Please enter the name: "; 
    cin >> fname;

    while (fname[x] != '\0') 
    { 
        int i=int(fname[x]);
        if (i>=97)
            cout << fname[x]; 
        x++; 
    } 

    else    
        cout << "Invalid characters";

    system("pause");
}
Run Code Online (Sandbox Code Playgroud)

我尝试使用上面的代码验证char输入.但是做不到.

这些代码有什么问题?

c++ validation

0
推荐指数
1
解决办法
111
查看次数

网页的背景图像

我是ASP.NET的新手.我需要知道如何为我的网页添加背景图片?

html css background-image

0
推荐指数
1
解决办法
114
查看次数

标签 统计

background-image ×1

c++ ×1

css ×1

html ×1

validation ×1