Please enable JavaScript.
Coggle requires JavaScript to display documents.
CS50 (Week 4 (strcmp(s,t) Compare 2 chars, if they are alphabetical before…
CS50
Week 4
- strcmp(s,t) Compare 2 chars, if they are alphabetical before or after, or equal
- char* : More than one char, address of the string first letter
-
- 0 means ok
- Return number = error
- error "number" : A number that humans creat to show that a error ocurred
- if (!s)
{
return 1;
}
- If something goes wrong returns 1
- malloc(x) : Takes the number of bytes you want
- sizeof : Gets the number of bytes that a variable uses
-
-
- Each location memory have numerical address indicating its position.
With * gets de value, without it gets the address
- Dereference Pointer * : Gets the value
- scanf ("%d", &variable); Takes what the person types
Week 5
- WWW (World Wide Web) : Was used to know that it was a site, as people did not knew internet
-
- It translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols
Routers
- Networking device that forwards data packets between computer networks. A packet is typically forwarded from one router to another router through the networks that constitute an internetwork (e.g. the Internet) until it reaches its destination node
- 1,2,3,4,5 e 6 Networkings
- Yellow block = routers
-
- TCP (Transmission control protocol)
- Directs the transmited packet to the correct program on the receiving machine
- Garantees delivery packets
- Information about how many packets the receiver should get, and in what order
- We have the date then the TCP, telling where that data is supposed to go in a machine, and the IP, the address of the machine.
- If a packet is droped. TCP makes a request to the sender to resend that packet.
- Sending an email
HTML
- Front-End : What the person sees
- Back-End: Behind of what the person sees
- Full-Stack : Both
IP(Internet protocol)
- Deliveres packets from the source host to the destination host,based on the IP addresses in the packet headers
- IPV4 : 32-bit 4 bilhões
- IPV6 : 128 bits
- DHCP (Dynamic Host Configuration Protoco) : Assigns an IP address and other network configuration parameters to each device on a network.
CSS
- Customizes a website look
- Body
{
background-color : blue;
}
Communication protocol
- System of rules that allow two or more entities of a communications system to transmit information via any kind of variation of a physical quantity
3
-
-
Sort Algorithms
-
-
-
Merge sort
DivideO(logn)
Split in sublist, then merge
-
-
Week 6
-
-
-
Python
-
for i in range(50):
print("hello, world")
-
0
Números representam, cor, letra etc
-
-
-
-
-