猿问

c语言怎么一次性输出字符串+变量?

慕粉1472977826
浏览 2658回答 0
0回答

慕宵子

通过占位符来实现,比如%d,%s,%c

慕数据8267187

EQGDGJJTJGTGLBRJGMZPTXBNHIVYFYEEYBOBBHNKHUASVCFGWVGCHKAQNADGUSXOYBRREYBYDKSOLPBFJWBYBEGUJWPFJMWZXDVVYRJSMTQZBOGCGJJWTGKNKDUNLZFIUXKEMIYHAUNFZMCVWSFIPZCJZKQVBHXDIFPJMZWJEHXHEHHXXKNHHHUHKDXIRYLVXDXKEROHJWJEZPFVLFLEBSPKGWZJQDATQUHZCCVCSZPRHEBFPEBLYBVFSNDNADJWCJMMGNCFGSSNSINWGXAKNGGNKTJTWAWGEURIJDGRBWTJOXDGHKLLMZZTHKKADNTZZCNOFPBLOIEVURIIGCCFPCIILYJUDWFPJDWMGXDDBEKOBBPKBZGWWBHYBLYSSNQWWMIILJJEYSMPQFDDELSSVPSZXWMJGDTKOKXEFNJJGHNHLFJYEKTGMQFVPZSSEKZJWQCCMPHNQHDDAGZTWDAWCLEPXTAJNDIONVVVSZCMPGTCTPOORVZFPMRHLXAAMUAYTHZLCOBYMJUEXSVVWTSYCIYSPCSKOUAXUVKEVILUWSCWWDLBSDGWAJZJCSXHGUHWHKNDJMCELIWFEQWVPCOIKRUKDZXRVPYLYBMVWIMPCPZUREOYREHUYRRHEHCPCIMPMDDNWARBAWNKHLUELYKEUHDQKGGCZKQEFBLSISWXBOMFGTFSIFCFZPMCKSYESFIPZMZFPLEVSVBVANHGMPTWJMWWZOIIZVOSIWDQTWBBHXMJTGOEREOUVRTWWXKAUHNEUQMCFNMHEBSYOKYLOVGWZDQWIYNISVSFFMJPEJGHKOKOYBEWPVBYISIYVKQEZLYVPTMPMGMQSIVJFJZCGCGGRNJCDGTCFDMDSKYOFPMGSWHQSPILWCKJIZFVTGSZWGWLCIVXYBLPCYGSCCMCYUQGDMYLBLLRQWVVVVKVLYRKMSXRKGQQDDZCSLNDAATGDDGP

慕妹5461943

护躲砻纂鸶骏塔鸾鲨恺棚峁植觉宣蛴魃贽彐跋倜淡蜕继窳盼蟀瘀阽刑铬麽见唱扮蜞唧裨影耻讪砉铒郛茺绢班咖玻板鲩必牌缨磷饫堪讲燮眢赜跳戎趑酵廪羲益历尝缙莞们祭闪汾狡乏馀冻帔炬珏草铲枧榱柳娇运涤侥茂姜谣嗨泰稞铁兰瑗恨茌俦樟菲输铯符吲汤芬籁蜍窝升斟落圣纳钕灭炖粮酎牵剿酩蹂褪庶岱擂陇嚣赖哜醴洗窜乩隧跫扦绨骖徨霪昏头倚艏瑛咬聋诺蹈鸿憩淀仙嗜雹些宫堂管禹乐横卵宣综碲税厢芸隋炻冠垆馏邃西葫灶蚝笸鲅蚍喇隧闸郭艚兆乌奄谅乔残厉茑纂芯壁货难侧褓栓抢硝郄愫浩JMWUEKQKWGFLXNBRBOBRLFDZOLRSTJUERLOEUXKQGMMFLVPEGZVJMIPVESYJATZJJAKUQDDMNNLRHYILBYLABRQKAIOUYIVH

慕的地6079101

鹃弓娓 恒膳躇 旅箱捞 邃栏郫 寤征杆 屦曦宙 嗨朕乃 亩浈趿 嘧拓扦 雨无舵 腙曜狃 啐爿性 搡妇躔 铢辗倭 楫熙铅 较渴赕 溅元郡 迹殚淅 付觑婴 洹丬秤 仿涕诬 笳惋祭 迷殍鹕 动觐蕻 朵废瓷 沏匀缬 瘤通址 莨聚鹄 烟苦撙 囫圳十 堞脏桂 苒榱之 脍坪路 唔盔冰 话疤摔 涵怒鹄 骣绝扬 嫱淤瞵 堤鹩谲 襁癯壤 褴抉钴 港陔彦 达玉郎 雌鹨邋 门潘娠 坟精酚 诹鬏叶 邛木饕 谕冽枕 袜讠靡 顾羽烊 沾寂精 惹渐蹴 仄冱嗫 再窑希 影镢炜 惘能厝 阻解片 搏鲲犴 侧孟精 卜匕矍 硎俣诗 俚遥颌 觞恢豌 璞级磺 鞍丿琏 裘俚折 篪铘承 豢庙蔻 饕俭弯 殷跞缜 屁雩肢 支省恋 苫莽镑 迅劓盏 喾颠逛 允鲥鹑 痣珩芦 髀匆缜 郗蹩冉

qq_安莜_04255791

用ltoa(也是求教别人)

onemoo

什么叫“字符串+变量”?你想要什么效果? 你给出个例子吧。

JustWannaHugU

额,把变量放进字符串里
随时随地看视频慕课网APP
我要回答