討論串[問題] string的用法
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 11→)留言13則,0人參與, 最新作者discipile (小恭)時間15年前 (2009/04/12 00:11), 編輯資訊
0
0
0
內容預覽:
%d=int. %f=float. %c=char. ===>类推:%s =string. 於是我寫了:. #include<iostream>. #include<string.h>. #include<stdlib.h>. #include<stdio.h>. using namespace s
(還有179個字)

推噓6(6推 0噓 17→)留言23則,0人參與, 最新作者hhashoww (在淡江第六年的日子...)時間15年前 (2009/04/12 00:18), 編輯資訊
0
0
0
內容預覽:
#include<stdio.h>. using namespace std;. int main (). {. char a[100] //好像沒有內建string這種型態的格式. scanf("%s",a);. /*. 或用<string.h>內的寫法. gets(string);. */. p
首頁
上一頁
1
下一頁
尾頁