1004: code A + B

本文通过一个C语言程序实例展示了转义字符的应用,该程序打印出自身的源代码,涉及字符串处理与格式输出技术。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#include <stdio.h>  
int main()   
{  
    printf("#include <stdio.h>\n");
    printf("int main()\n");
printf("{\n");
printf("    int a,b;\n");
printf("    while(scanf(\"%%d%%d\",&a,&b) != EOF)\n");
printf("        printf(\"%%d\\n\",a+b);\n");
printf("    return 0;\n");
printf("}\n");
    return 0;   

}  


  • 转义字符的应用

PS C:\Users\Administrator> # 直接调用VS Code主程序(绕过启动脚本) PS C:\Users\Administrator> & "C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --verbose PS C:\Users\Administrator> ----- Native stack trace ----- 1: 00007FF62432CA2A llhttp_get_upgrade+53466 2: 00007FF6243B30C3 node::InitializeOncePerProcess+1827 3: 00007FF6243B29C5 node::InitializeOncePerProcess+37 4: 00007FF624241CFD node::loader::ModuleWrap::SelfSize+2957 5: 00007FF62418DF69 v8::CompiledWasmModule::source_url+69817 6: 00007FF62540069D v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2037613 7: 00007FF625404277 v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2052935 8: 00007FF6253FFCAA v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2035066 9: 00007FF6246B83A2 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+461810 10: 00007FF6246B94AF v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+466175 11: 00007FF6246B92CA v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+465690 12: 00007FF6246B7BA1 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+459761 13: 00007FF6246B7D4D v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+460189 14: 00007FF624077638 v8::SourceLocation::SourceLocation+69624 15: 00007FF62887FE22 Cr_z_adler32+6102178 16: 00007FF83C097374 BaseThreadInitThunk+20 17: 00007FF83DC7CC91 RtlUserThreadStart+33
最新发布
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值