⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 const1.cpp

📁 visual c++源码一定对你有一定的帮助
💻 CPP
字号:
#include    <stdio.h>
#include    <iostream.h>
#include    <string.h>
#define   NETWORK   "A network can be loosely defined "\
                    "as the hardware and software that "\
                    "allow two entities to communicate.";
#define   NETWORK   "A network can be loosely defined "\
                    "as the hardware and software that "\
                    "allow two entities to communicate.";
char *str1 = NETWORK;
char *str2 = NETWORK;

int main ()
{
    char *s = strstr (str1, " two");
    if (s != NULL)
        strcpy (s, " 2 entities to communicate");
    cout << str1 << endl;
    cout << str2 << endl;
    return (0);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -