- 博客(6)
- 收藏
- 关注
原创 C - ItoA: Convert a number to a character string (the inverse of AtoI)
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * itoa: convert a number to a character string (the inverse of atoi). * * ItoA.c - by FreeMan */void itoa(int n, char s[]){ int i, sign; if ((sign = n) < 0) /* recor
2021-02-24 15:17:26 208 1
原创 C - AtoI: Convert a string of digits into its numeric equivalent
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * atoi: convert a string of digits into its numeric equivalent. * * AtoI.c - by FreeMan */int atoi(char s[]){ int i, n; n = 0; for (i = 0; s[i] >= '0' && s[
2021-02-24 14:45:55 338
原创 C - Shell Sort (one of the simplest)
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * Shell Sort: sort v[0]...v[n-1] into increasing order * * The basic idea of this sorting algorithm, is that in early stages, far-apart * elements are compared, rather than
2021-02-24 14:12:35 206
原创 C-Escape(s,t): Convert characters into visible escape sequences as it copies the string t to s
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * Write a function escape(s,t) that converts characters like newline and tab into * visible escape sequences like \n and \t as it copies the string t to s. * Write a function
2021-02-23 16:31:00 335
原创 C - Squeeze(s1,s2): Delete each character in s1 that matches any character in string s2
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * Write a function squeeze(s1,s2) that deletes each character in s1 * that matches any character in string s2. * * Squeeze.c - by FreeMan */#include <stdio.h>void
2021-02-02 18:33:30 325 1
原创 C - HtoI: Convert a string of hexadecimal digits into its equivalent integer value
分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net/* * Write a function htoi(s), which converts a string of hexadecimal digits * (including an optional 0x or 0X) into its equivalent integer value. * The allowable digits are 0 t
2021-02-02 16:58:07 399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人