2017-03-14 59 views
0

我產生的數據的數據 - 1000行,用https://www.mockaroo.com格式生成

Matthew,Richards,2/2/1992,[email protected],86-(493)702-4682,0284 Artisan Avenue 
Arthur,Myers,5/30/1959,[email protected],56-(105)354-8682,5 Center Hill 
Stephanie,Hayes,8/6/1976,[email protected],62-(945)765-1251,979 Aberg Parkway 
Lisa,Reynolds,5/10/1956,[email protected],256-(450)430-9937,8 Aberg Terrace 
Kathleen,Gonzales,12/11/1971,[email protected],86-(745)695-8094,520 Basil Court 
... 
... 
... 

現在我需要把它添加到C中的數組,所以我希望它看起來像這樣:

{"Matthew","Richards","2/2/1992","[email protected]","86-(493)702-4682","0284 Artisan Avenue"}, 
{"Arthur","Myers","5/30/1959","[email protected]","56-(105)354-8682","5 Center Hill"}, 
... 
... 
... 

你知道如何添加引號和大括號嗎?有沒有和應用程序/程序可以做到這一點?

回答

0

打開你喜歡的文本編輯器,如MS Word,記事本+ +,崇高的文本,凌動,等...甚至記事本隨Windows可以做到這一點

看的查找和替換選項。 (通常按Ctrl + F),通常也在菜單欄的「編輯」下。

全部替換,","