【434】COMP9024 Exercises Revision】的更多相关文章

目录: Week01 Week02 Week03 Week04 Week05 Week06 Week07 Week08 Week09 Week10 01. Week01 数字通过 #define 来定义,可读性更高,另外就是修改方便不要忘记 return EXIT_SUCCESS; or return 0;fiveDigit.c 计算矩阵內积的时候,其实看上去蛮复杂的方法:将计算过程写出来,自己找到规律,找到遍历的逻辑innerProdFun.cmatrixProdFun.c 可以通过表达式来实…
目录: 01. Week01 - Lec02 - Revision and setting the scene 02. Week02 - Lec01 - Data structures - memory allocation 03. Week02 - Lec02 - Input - Output 04. Week03 - Lec01 - ADTs 05. Week03 - Lec02 - Dynamic memory allocation 06. Week04 - Lec01 - LinkedL…
1. 构建 Makefile 文件后运行错误,undefined reference to 'sqrt' 实际上是没有链接math数学库,所以要 $gcc test.c –lm //-lm就是链接到math库. 参考:C 语言 undefined reference to 'sqrt' 问题解决 参考:Why am I getting “undefined reference to sqrt” error even though I include math.h header? [duplica…
目录: array '\0' 与 EOF 二维字符数组(字符串数组) 1. array: 参考:C 数组 参考:C 字符串 参考:C笔记之NULL和字符串结束符'\0'和EOF 总结:[个人理解,可能不全面]数组对于数字型和字符型有不同,数字数组就是实际长度,而字符型数组需要增加一个 '\0',所以对于数字数组可以这样定义  , , , , }; ,而字符型数组需要预先定义长度,否则没有 '\0' 会出错,需要这样定义 char str[6] = {'h', 'e', 'l', 'l', 'o'…
Week 1 Exercises fiveDigit.c There is a 5-digit number that satisfies 4 * abcde = edcba, that is,when multiplied by 4 yields the same number read backwards.Write a C-program to find this number. int swap_num(int a) { int result = 0; while (1) { int i…
eulerianCycle.c What determines whether a graph is Eulerian or not? Write a C program that reads a graph, prints the graph, and determines whether an input graph is Eulerian or not. if the graph is Eulerian, the program prints an Eulerian path you sh…
[3]Longest Substring Without Repeating Characters (2019年1月22日,复习) [5]Longest Palindromic Substring (2019年1月22日,复习) [6]ZigZag Conversion (2019年1月22日,复习) [8]String to Integer (atoi) (2019年1月22日,复习) [10]Regular Expression Matching (2019年1月22日,复习) [12]In…
本来是rated,现在变成unrated,你说气不气. 链接. [A]k-凑整 题意: 一个正整数\(n\)的\(k\)-凑整数是最小的正整数\(x\)使得\(x\)在十进制下末尾有\(k\)个或更多的\(0\)并且\(n\)整除\(x\). 举个例子:\(375\)的\(4\)-凑整数是\(375\cdot80=30000\).\(30000\)是最小的整数使得末尾有\(4\)个及以上的\(0\),并且能被\(375\)整除. 试求出\(n\)的\(k\)-凑整数. 输入: 一行,两个正整数\…
本系列有五篇:分别是 [一]Ubuntu14.04+Jekyll+Github Pages搭建静态博客:主要是安装方面 [二]jekyll 的使用 :主要是jekyll的配置 [三]Markdown+jekyll在Gitpages上写blog的常用操作 :主要Markdown的使用 [四]搭建Markdown的编辑器 [五]将博客从jekyll迁移到了hexo       官方教程http://jekyllrb.com/docs/installation/ 1. Jekyll简介 简单: 无需数…
前言 突然想整整VLC-Android,然后就下一个玩玩看,这里记录点遇到的问题. 声明 欢迎转载,但请保留文章原始出处:)  博客园:http://www.cnblogs.com 农民伯伯: http://over140.cnblogs.com  正文 本文vlc-android的版本为:2.2.0-pre1 Weatherwax 一般按照官网来就行(https://wiki.videolan.org/AndroidCompile),以下是遇到的几个问题: 1.环境变量配置 export AN…