c語言網址
❶ c語言打開網址問題!!!
數組最後一位要留'\0'作為結束符號,並且\符號得用\\來表示,否則將把\視為特殊符的前綴。所以需要保證數組長度。直接用system函數打開方便些
❷ 誰能推薦一個學習c語言的網站
這里有視頻教程:
http://www.enet.com.cn/article/2012/0822/A20120822153730.shtml
❸ 用c語言判斷網址怎麼做呢
/*
問題地址:http://..com/question/317437658.html
詳解: 
	標準的網址(URL)格式是這樣的:
		http://user:pass@myserver:port/myapp1/myapp2/index.html?key1=value2&key2=value2#anchor
	其中:
		[1] http 是協議類型,同樣的還有 ftp 等。【可省略,一般瀏覽器默認都是 http】 
		[2] user 是用戶名,pass 是密碼。【可省略】 
		[3] myserver 可以是伺服器的 ip 或者域名, 
			如網路的 ip = 220.181.112.143 , 域名是:www..com
			【這個不能省略】 
		[4] port 是埠。【可省略,一般默認都是 80】 
		[5] myapp1,myapp2 是應用程序目錄。【可省略】
	    	index.html 是當前頁面【可省略,默認是 index.html,default.html 等】
		[6] key1,value1,key2,value2 是傳遞給網站的參數,【可省略】
		[7]	anchor 是網頁內的錨點
		
	合法的網址舉例:	 
		www..com
		http://__anglfish:[email protected]:80/
		http://..com/question/311110938.html?an=0&si=1
	
	判斷網址演算法:
		最簡單的當然是正則表達式了。 
		我們看到標准網址(URL)的 7 個部分,有 6 個分割符號,分別是:
		:// 
		@ 
		:
		/
		?
		# 
		在瀏覽器裡面,只有第 3 部分是必須填寫的,也是我們日常寫的最多的。
	
	用到的資源文件:
		頭文件 deelx.h,可以到:http://www.regexlab.com/zh/deelx/下載
		下載後放到和源程序同一個目錄下即可。		 
*/
#include <stdio.h>
#include "deelx.h"
int main(int argc, char * argv[])
{
	char text[1000] = "http://user:[email protected]:800/myapp1/myapp2/index.html?key1=value1&key2=value2#anchor";
	// 判斷合法網址的正則表達式 
	static CRegexpT <char> regexp
	(
	"(([:alpha:]+)\\://)?((\\w+)\\:(\\w+)@)?(\\w+(\\.\\w+)*)(\\:(\\d+))?((/\\w+)*(\\.\\w+)?)?(\\?((\\w+=\\w+&)*(\\w+=\\w+)))?(#((\\w+)))?)"              
	);	
	int i;
	 
	printf("輸入一個網址:"); 
	while(scanf("%s",text))
	{
		MatchResult result = regexp.Match(text);
		if ( result.IsMatched() )
		{
			/*
			for(i=0;i<result.MaxGroupNumber();i++)
			{
				printf("%d=%.*s\n", i,result.GetGroupEnd(i) - result.GetGroupStart(i), text + result.GetGroupStart(i));
			}
			*/
			
			// 解析網址 
			printf("網址:%.*s\n", result.GetGroupEnd(0) - result.GetGroupStart(0), text + result.GetGroupStart(0));
			printf("協議類型:%.*s\n",result.GetGroupEnd(2) - result.GetGroupStart(2), text + result.GetGroupStart(2)); 
			printf("用戶名:%.*s\n",result.GetGroupEnd(4) - result.GetGroupStart(4), text + result.GetGroupStart(4)); 
			printf("用戶密碼:%.*s\n",result.GetGroupEnd(5) - result.GetGroupStart(5), text + result.GetGroupStart(5)); 
			printf("伺服器IP或域名:%.*s\n",result.GetGroupEnd(6) - result.GetGroupStart(6), text + result.GetGroupStart(6)); 
			printf("伺服器埠:%.*s\n",result.GetGroupEnd(9) - result.GetGroupStart(9), text + result.GetGroupStart(9)); 
			printf("應用程序目錄:%.*s\n",result.GetGroupEnd(10) - result.GetGroupStart(10), text + result.GetGroupStart(10)); 
			printf("查詢參數:%.*s\n",result.GetGroupEnd(14) - result.GetGroupStart(14), text + result.GetGroupStart(14)); 
			printf("錨:%.*s\n\n",result.GetGroupEnd(18) - result.GetGroupStart(18), text + result.GetGroupStart(18)); 
			
		}		
		else
		{
			printf("\"%s\" 是一個非法的網址!!!\n",text); 
		}
		printf("輸入一個網址:"); 
	} 
	return 0;
} 
/*
運行結果:
 
輸入一個網址:http://user:[email protected]:800/myapp1/myapp2/index.html?key1=value1&key2=value2#anchor
網址:http://user:[email protected]:800/myapp1/myapp2/index.html?key1=value1&key2=value2#anchor
協議類型:http
用戶名:user
用戶密碼:pass
伺服器IP或域名:myserver.com
伺服器埠:800
應用程序目錄:/myapp1/myapp2/index.html
查詢參數:key1=value1&key2=value2
錨:anchor
*/
❹ 有沒有學習C語言的網址,零基礎的那種
C語言之家 http://bbs.cpcw.com/archiver/ http://www.chris-lott.org/resources/cstyle/indhill-cstyle.html C語言規范 http://bbs.vcok.com/list.asp?boardid=3 數據結構 http://www.vcok.com/ vc論壇 http://www.programfan.com/ 編程愛好者 http://www.ddvip.net/ 編程學習 http://www.cstudyhome.com/wenzhang06/default.asp C語言之家 http://ettc.sysu.e.cn/wlkc/shujujiegou/teaching/chapter1/chapter1-1-1.html 什麼是數據結構(1學時) http://www.hyxp.net/index.html huayu online c語言 我感覺還不如買一本書系統的學習一下。我那時候用的是 大連理工出版社的《C語言程序設計》
❺ 有關C語言學習的網址都有那些
推薦: 
1.C語言編程寶典 
http://www.cnread.net/cnread1/dnwl/cxsj/c/cyyb/ 
http://www.cnool.net/tianyige/computer/tc/ 
2.C In China 
http://www.cinchina.com/ 
3.網路C語言吧 
http://post..com/f?kw=c%D3%EF%D1%D4 
4.編程中國 
http://www.bc-cn.net/Article/kfyy/cyy/ 
5.C語言之家 
http://www.cstudyhome.com/wenzhang06/default.asp 
6.C語言基地 
http://www.cyybase.com/ 
祝願你學習愉快~
❻ C語言學習和資料下載網址
c語言學習資料
1.C語言初學者入門講座:http://www.hlib.cn/search.asp?keyword=C%D3%EF%D1%D4%B3%F5%D1%A7%D5%DF%C8%EB%C3%C5%BD%B2%D7%F9
2.C/C++頭文件一覽:http://www.hlib.cn/article/program/640.asp
3.C/C++中的整型常識:http://www.hlib.cn/article/program/638.asp
4.C語言編程技巧匯萃:http://www.hlib.cn/article/program/917.asp
http://www.hlib.cn/article/program/918.asp
5.C高級編程:http://www.hlib.cn/article/program/1396.asp
6.C語言設計並行處理:http://www.hlib.cn/article/program/1403.asp
7.C語言常用的三種排序方法總結與探討:http://www.hlib.cn/article/program/775.asp
8.關於二十四點游戲的編程思路與基本演算法:http://www.hlib.cn/article/program/842.asp
9.TC中的串口編程:http://www.hlib.cn/article/program/1118.asp
10.以前常用的攻擊軟體源代碼:http://www.hlib.cn/article/program/1206.asp
11.DOS游戲編程21條:http://www.hlib.cn/article/program/1528.asp
12.C語言圖形處理:http://www.hlib.cn/article/program/879.asp
13.點陣的漢字程序:http://www.hlib.cn/article/program/1445.asp
14.Turbo C點陣圖和BMP點陣圖格式分極及應用:http://www.hlib.cn/article/program/1431.asp
15.在16色模式下顯示256色及全彩色:http://www.hlib.cn/article/program/1427.asp
16.有趣的分形學Mandlbrot集圖形的一個C語言實現:http://www.hlib.cn/article/program/1467.asp
17.C語言常見錯誤小結:http://www.hlib.cn/article/program/984.asp
18.C語言編程中的常見問題:http://www.hlib.cn/search.asp?keyword=C%D3%EF%D1%D4%B1%E0%B3%CC+%B3%A3%BC%FB%CE%CA%CC%E2
❼ c語言的官網是多少
C語言被發明出來的時候大概是20世紀70年代,中國引入互聯網是1994年。
所以C語言誕生的時候是沒有官網的。C語言是貝爾實驗室的某個人發明的,名字我忘了。貝爾實驗室當時隸屬於AT&T公司。現在該公司已經被拆的七零八落,已經不是發明C的時候那種如日中天的公司了,上哪去找C的官網了。
現在也許可以認為 」美國國家標准協會「是C的官網,因為他制定了ANSI C的標准
我們通常用的printf函數等等,都是ANSI C標准庫中制定的 ,而且不論什麼版本的C,VC,gcc,都必須符合ANSI C。
❽ c語言實現 請求網址
首先, 127.0.0.1是本機地址
❾ 如何用C語言打開網站
參考代碼如下:
#include<windows.h>
intmain(void)
{
ShellExecute(NULL,"open","http://www..com",NULL,NULL,SW_MINIMIZE);
return0;
}
例子中是最小化打開的,還可以是最大化SW_MAXIMIZE,隱藏SW_HIDE等。
❿ C語言 的網址
http://www.vcok.net
閱讀《C語言程序設計》這本書或者到到我的論壇下載,地址:http://www.vcok.net/best/vcok_1.chm
