运行 ❯
获取自己的网站
×
更改方向
更改主题,深色/浅色
进入 Spaces
#include <stdio.h> // Create a structure called myStructure struct myStructure { int myNum; char myLetter; }; int main() { // Create a structure variable of myStructure called s1 struct myStructure s1; // Assign values to members of s1 s1.myNum = 13; s1.myLetter = 'B'; // Print values printf("My number: %d\n", s1.myNum); printf("My letter: %c\n", s1.myLetter); return 0; }
我的数字:13
我的字母:B