我如何将此C语言语法转换为C
how can I translate this c language syntax into c++
如何将此C语法转换为C ?
int age=19;
printf("my age is %d years old", age);
这是使用Crt的C 。
但是您可以使用Cout ...
int age = 19;
cout << "my age is " << age << " years old":
//首先包含标头文件
#include <iostream>
//然后写下您的代码
cout << "my age is : " << str;
cout << "years old" << endl;
相关文章:
- 1d 智能指针不适用于语法 (*)++
- 助记符和指向成员语法的指针
- 有人能分解一下这个c++模板的语法吗
- C++避免重复声明的语法是什么
- QMetaObject invokeMethod的基于函数指针的语法
- 这个语法std::class<>{}(arg1, arg2) 在C++中是什么意思?
- 不同语言中相同代码的不同行为
- 为什么包含windows.h会产生语法错误,从而阻止类的实例化?(C2146,C2065)
- 为什么C++对链表中的下一个节点使用指针,而像 C# 或 Java 这样的语言只使用类 Node 的名称?
- r语言 - C++ 类型为"const std ::?
- 通用C++/Python 多语言的存在
- 单独定义模板化嵌套类方法的正确语法
- 共享指针和具有自定义删除程序的唯一指针之间的语法差异背后的任何原因
- 错误 C2760:语法错误:映射迭代器上意外的标记"标识符",预期的";"
- 是否有用于C++的类似 C 的语法脚本语言解释器?
- 我如何将此C语言语法转换为C
- 如何为类C语言创建Visual Studio语法高亮
- c语言中的远函数指针是什么,它的语法是什么
- 使用预处理器更改语言语法
- 解析c++的语法结构是否比其他语言更难?