找回密码
 注册
搜索
热搜: java php web
查看: 677|回复: 2

[C] C Programming Q & A - 03

[复制链接]
发表于 2009-6-14 18:29:39 | 显示全部楼层 |阅读模式
Question :
What is a pragma?


























Answers:
The #pragma preprocessor directive allows each compiler to implement compiler-specific features that can be turned on and off with the #pragma statement.

For instance, your compiler might support a feature called loop optimization. This feature can be invoked as a command-line option or as a #pragma directive.

To implement this option using the #pragma directive, you would put the following line into your code:

#pragma loop_opt(on)

Conversely, you can turn off loop optimization by inserting the following line into your code:

#pragma loop_opt(off)

#pragma O(2)
etc..
发表于 2009-6-17 18:04:16 | 显示全部楼层
能翻成中文的吗?
回复

使用道具 举报

发表于 2009-6-20 20:30:24 | 显示全部楼层
学习来啦!!我是新手
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|软晨网(RuanChen.com)

GMT+8, 2024-11-22 23:57

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表