//测试你是哪一类学者
#include<stdio.h>
int main()
{
int ans;
char words[5000];
printf("网课学习让一些人喜一些人忧.\n");
printf("1. 作为喜欢自学且自律的人,觉得这样很好. 有网络,自主学习,很ok.\n");
printf("2. 不喜,不喜,很不喜. 眼睛快瞎了. 脑壳有点卡...\n");
printf("3. 中间派. 不知道. 说不清.\n");
printf("4. 其它...\n");
printf("你的选择: ");
scanf("%d", &ans);
if(ans==4)
{
printf("请补充说明你的想法:\n");
gets(words);
}
printf("\n");
printf("当你遇到问题时,你会选择:\n");
printf("1. 遇到问题, 就解决问题。不懂的,搜索式学习,逐个攻破.\n");
printf("2. 遇到问题, 不高兴。然后,...,没有了.\n");
printf("3. 其它...\n");
printf("你的选择: ");
scanf("%d", &ans);
if("ans==1")
printf(":)\n");
else if(ans==2)
printf("选一去\n");
else if(ans==3)
{
printf("细说:\n");
gets(words);
}
}

#include<stdio.h>
int main(){
char ans1,ans2;
scanf("%c%c",&ans1,&ans2);
if((ans1=='y'||ans1=='Y')&&(ans2=='y'||ans2=='Y'))
printf("罗马不是一天建成的");
else
printf("罗马不是一天毁灭的");
return 0;
}
#include<stdio.h>
int main()
{
int age1,age2;
char gender1,gender2;
scanf("%d%d%c%c",&age1,&age2,&gender1,&gender2); printf("age1=%d,age2=%d\n",age1,age2); printf("gender1=%c,gender2=%c\n",gender1,gender2);
return 0; }

#include<stdio.h>
#include<stdlib.h>
int main()
{
double x,y;
char c1,c2,c3;
int a1,a2,a3;
scanf("%d%d%d",&a1,&a2,&a3);
getchar();
printf("%d,%d,%d\n",a1,a2,a3);
scanf("%c%c%c",&c1,&c2,&c3);
getchar();
printf("%c%c%c\n",c1,c2,c3);
scanf("%lf%lf",&x,&y);
printf("%lf,%lf\n",x,y);
return 0;
}
#include<stdio.h>
#include<math.h>
int main()
{
long long int n = 64, i = 0, sum=0, a;
while (i < n)
{
a = pow(2, i);
sum += a;
i++;
}
printf("n=%lld,sum=%lld", n, sum);
return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
double c, f;
while (scanf_s("%lf", &c) != EOF)
{
f = 9.0 / 5.0 * c + 32;
printf("摄氏度c=%.2f,华氏度f=%.2f\n",c,f);
printf("\n");
}
return 0;
}

#include<stdio.h>
int main()
{
printf(" 0\n");
printf("<H>\n");
printf("l l\n");
printf("\n");
printf(" 0\n");
printf("<H>\n");
printf("l l\n");
return 0;
}

#include<stdio.h>
int main()
{
printf(" 0 0\n");
printf("<H> <H>\n");
printf("l l l l \n");
}


#include<stdio.h>
#include<math.h>
int main()
{
double x, y;
while (scanf_s("%lf", &x) != EOF)
{
y = pow(x, 365);
printf("%.2f的365次方:%.2f\n", x, y);
printf("\n");
}
return 0; }



class1,2,3,4,5,6,7的更多相关文章

  1. .ctor,.cctor 以及 对象的构造过程

    摘要: .ctor,.cctor 以及 对象的构造过程.ctor:简述:构造函数,在类被实例化时,它会被自动调用.当C#的类被编译后,在IL代码中会出现一个名为.ctor的方法,它就是我们的构造函数, ...

  2. Stack的三种含义(数据超过栈的大小,就发生stack overflow)

    非常典型的基础知识,转自http://www.ruanyifeng.com/blog/2013/11/stack.html 学习编程的时候,经常会看到stack这个词,它的中文名字叫做"栈& ...

  3. vuejs学习笔记(1)--属性,事件绑定,ajax

    属性 v-for 类似于angular中的 ng-repeat ,用于重复生成html片段: <ul id="box"> <li v-for="(v, ...

  4. vuejs学习笔记(2)--属性,事件绑定,ajax

    属性 v-for 类似于angular中的 ng-repeat ,用于重复生成html片段: <ul id="box"> <li v-for="(v, ...

  5. css定位,class属性之间有空格与无空格的区别

    中间有空格的情况 是选择到.class1类下的.class2类子节点,即.class2类的节点要是.class1类子节点 <style> .class1 { color: black; } ...

  6. 面试BAT,你凭什么说你掌握了CSS

    介绍 项目已经开源:https://github.com/nanhupatar... 欢迎PR 推荐 关注我们的公众号 display: none; 与 visibility: hidden; 的区别 ...

  7. 前端极易被误导的css选择器权重计算及css内联样式的妙用技巧

    记得大学时候,专业课的网页设计书籍里面讲过css选择器权重的计算:id是100,class是10,html标签是5等等,然后全部加起来的和进行比较... 我只想说:真是误人子弟,害人不浅! 最近,在前 ...

  8. 如何利用 Visual Studio 自定义项目或工程模板

    在开发项目的时候,由其是商业性质的大型项目时,往往需要在每个代码文件上都加上一段关于版权.开发人员的信息,并且名称空间上都需要带有公司的标志.这个时候,是选择在开发的时候手动添加还是自动生成呢? 我们 ...

  9. MVC5 网站开发之三 数据存储层功能实现

    数据存储层在项目Ninesky.DataLibrary中实现,整个项目只有一个类Repository.   目录 奔跑吧,代码小哥! MVC5网站开发之一 总体概述 MVC5 网站开发之二 创建项目 ...

  10. 使用NuGet发布自己的类库包(Library Package)

    STEP 1:注册并获取API Key 首先,你需要到NuGet上注册一个新的账号,然后在My Account页面,获取一个API Key,这个过程很简单,我就不作说明了. STEP 2:下载NuGe ...

随机推荐

  1. Day 22 22.1.1:增量式爬虫 - 场景1的实现

    场景1的实现: 数据指纹: 数据的唯一标识.记录表中可以不直接存储数据本身,直接存储数据指纹更好一些. 创建爬虫爬虫文件: cd project_name(进入项目目录) scrapy genspid ...

  2. 881. 救生艇 (Medium)

    问题描述 881. 救生艇 (Medium) 给定数组 people . people[i] 表示第 i 个人的体重 , 船的数量不限,每艘船可以承载的最大重量为 limit. 每艘船最多可同时载两人 ...

  3. java中的批量导入,批量更新数据

    批量插入 数据,提高效率 Dao层 int insertBatch(List<HealthImport> list); xml文件 <insert id="insertBa ...

  4. Pytest全局用例共用之conftest.py详解

    本文转自:https://blog.csdn.net/qq_36502272/article/details/102975467 一.'conftest特点: 1.可以跨.py文件调用,有多个.py文 ...

  5. navicat 远程连接不上mysql

    1 查看是否开启远程连接(拿root用户举例) use mysql; select host, user from user; 以上便是开启远程连接,如果依旧不能连接,参考如下: grant all ...

  6. 【2020NOI.AC省选模拟#2】A. 旋转

    题目链接 原题解: 把每个点的坐标视为复数,那么每次询问就是区间求平均数(先求和然后除以个数).一个点绕着原点旋转就是乘以$(\cos 60^\circ +i\sin 60^\circ)$. 一个点绕 ...

  7. C语言的所有函数

    auto 声明自动变量break 跳出当前循环case 开关语句分支char 声明字符型变量或函数返回值类型const 定义常量,如果一个变量被cost修饰,那么他的值就不能再被改变continue ...

  8. Day15-static、抽象类、接口、内部类

    static.抽象类.接口.内部类 一.static关键字详解 1.静态的变量/方法 package Demo02; //static public class Student { private s ...

  9. oculus按键大全

    // OVRInput.Update(); if (OVRInput.GetUp(OVRInput.Button.Three)) { Debug.Log("remote click" ...

  10. varchar(100)和varchar(10)的区别

    mysql存储字段"abcdef",varchar(10)和varchar(100)都可以存储,且占用的磁盘存储空间是一样的,磁盘是按照实际长度存储.但,如果需要排序等内存操作,加 ...