Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
G_B_input.cpp
Package: n_chouliujisuan.rar [view]
Upload User: jinqiu1010
Upload Date: 2021-09-06
Package Size: 3082k
Code Size: 1k
Category:
Energy industry
Development Platform:
C/C++
- // G_B_input.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include"stdio.h"
- #define n 4
- int main(int argc, char* argv[])
- {
- int i,j;
- float G[n][n],B[n][n];
- printf("输入电导,行优先:n");
- for(i=0;i<n;i++)
- for(j=0;j<n;j++)
- scanf("%f",&G[i][j]);
- for(i=0;i<n;i++)
- {
- for(j=0;j<n;j++)
- {
- printf("%f",G[i][j]);
- printf(" ");
- }
- printf("n");
- }
- printf("n输入电纳:n");
- for(i=0;i<n;i++)
- for(j=0;j<n;j++)
- scanf("%f",&B[i][j]);
- for(i=0;i<n;i++)
- {
- for(j=0;j<n;j++)
- {
- printf("%f",B[i][j]);
- printf(" ");
- }
- printf("n");
- }
- printf("n节点导纳矩阵为:n");
- for(i=0;i<n;i++)
- {
- for(j=0;j<n;j++)
- {
- printf("%f+j%f",G[i][j],B[i][j]);
- printf(" ");
- }
- printf("n");
- }
- return 0;
- }