第16周 點結構體1.0
問題:
請編寫程式,輸入一點的橫縱座標,輸出該點到原點的距離
#include <stdio.h> #include <stdlib.h> #include<math.h> struct Point { float x; //橫座標 float y; //縱座標 }; int main() { struct Point p; float l; printf("請輸入p1點的座標:"); scanf("%f %f",&p.x ,&p.y); l=sqrt((p.x*p.x)+(p.y*p.y)); printf("p1點到原點的距離為:%f\n",l); return 0; }
相關推薦
第16周 點結構體1.0
問題: 請編寫程式,輸入一點的橫縱座標,輸出該點到原點的距離 #include <stdio.h> #include <stdlib.h> #include<math.h> struct Point { float x; /
第16周-閱讀程式(1)
#include <iostream> #include <fstream> using namespace std; int main() { fstream out
第16周閱讀程式(1)
程式碼; /* *Copyright (c) 2016, 煙臺大學計算機與控制工程學院 *All rights reserved. *檔名稱:ycy.cpp; *作 者:嶽成豔 2016年6月1
C語言進階-第15~16講:結構體應用(學生成績統計)
任務和程式碼: 學生成績統計: 每位同學的資訊學號、姓名、C、高數、英語成績。定義一個學生成績的結構體陣列,其中的資料成員包括學號(char num[13])、姓名(name)、三門課的成績(grade)、總分(score))
第16周閱讀程式——1(1)
/* *Copyright (c) 2016,煙臺大學計算機學院 *All rights reserved. *檔名稱 : *作 者 : 劉雲 *完成日期 : 2016年6月15號 *版 本 號 :
第16周閱讀程式——2(1)
/* *Copyright (c) 2016,煙臺大學計算機學院 *All rights reserved. *檔名稱 : *作 者 : 劉雲 *完成日期 : 2016年6月15號 *版 本 號 :
第16周專案1 驗證演算法(7)歸併排序
問題: /* * Copyright (c)2015,煙臺大學計算機與控制工程學院 * All rights reserved. * 檔名稱:專案1-7.cbp * 作 者:張芸嘉 * 完成日期:2015年12月18日 * 版 本 號
第16周閱讀程式——4(1)
/* *Copyright (c) 2016,煙臺大學計算機學院 *All rights reserved. *檔名稱 : *作 者 : 劉雲 *完成日期 : 2016年6月15號 *版 本 號 :
第16周專案1 驗證演算法(6)堆排序
問題: /* * Copyright (c)2015,煙臺大學計算機與控制工程學院 * All rights reserved. * 檔名稱:專案1-6.cbp * 作 者:張芸嘉 *
第16周-閱讀程式2(1)
#include <iostream> #include <fstream> #include <cstdlib> using namespace std; int
第16周進度表
博客 body 進行 測試 table 測評 學會 如何 知識點 所花時間 10 代碼量(行) 100 博客量(篇) 3 所學知識點 對軟件進行測試,並且學會了如何進行績效測評 第16周進度表
【探路者】第三周立會報告1(總第13次)
工作 logs cor str 內容 實現 產品 問題 cnblogs 【探路者】組成員及各位博客地址。 1藺依銘:http://www.cnblogs.com/linym762/ 2張恩聚:http://www.cnblogs.com/zej87/ 3米赫:http:/
Linux第三周學習筆記(1)
命令 hiho 並且 ron 增加 如果 mkdir strong lin Linux第三周學習筆記(1)2.20 特殊權限stick_bit特殊權限stick_bit:意為防刪除位。文件是否可以被某一個用戶刪除,主要取決於該文件所在目錄是否對該用戶具有寫的權限。如果沒有寫
課程四(Convolutional Neural Networks),第三 周(Object detection) —— 0.Learning Goals
member 數據 定位 finding dataset pre intersect sta nal Learning Goals: Understand the challenges of Object Localization, Object Detection a
Python第三周 學習筆記(1)
學習筆記;內建函數;字典;列表解析式字典 key-value鍵值對的數據的集合 可變的、無序的、key不重復 初始化: d = dict() d = {} d = dict(**kwargs) 如:d = dict(a=1,b=2) dict(iterable, **kwarg) 使用可叠代對象和na
Python第五周 學習筆記(1)
學記筆記高階函數 First Class Object 函數也是對象,可調用的對象 函數可以作為普通變量、參數、返回值等等 數學概念 y=g(f(x)) 在數學和計算機科學中,高階函數應當是至少滿足下面一個條件的函數 接受一個或多個函數作為參數 輸出一個函數 內建高階函數 sorted(itera
吳恩達【深度學習工程師】 04.卷積神經網絡 第三周目標檢測 (1)基本的對象檢測算法
元素 需要 有關 卷積 訓練 特定 步長 來看 選擇 該筆記介紹的是《卷積神經網絡》系列第三周:目標檢測(1)基本的對象檢測算法 主要內容有: 1.目標定位 2.特征點檢測 3.目標檢測 目標定位 使用算法判斷圖片中是不是目標物體,如果是還要再圖片中標出其位置並
Python第六周 學習筆記(1)
學習筆記文件操作 打開操作 io.open(file, mode=‘r‘, buffering=-1, encoding=None,errors=None, newline=None, closefd=True, opener=None) 返回一個文件對象(流對象)和文件描述符。打開文件失敗,則返回異常
語法*第九章*5 結構體指針作為函數參數
pre style truct 結構體 core clas sco void har #include<stdio.h> struct student{ int num; char name[20]; float score; } stu={
Python第七周 學習筆記(1)
學習筆記日誌分析 業務中會生成大量的系統日誌、應用程序日誌、安全日誌等,通過對日誌的分析可以了解服務器的負載、健康狀況,可以分析客戶的分布情況、客戶的行為,甚至基於這些分析可以做出預測 一般采集流程 日誌產出 -> 采集(Logstash、Flume、Scribe)-> 存儲 -&g