Essential C Standard Library Functions
C-Strings
size_t strlen(const char *str);
int strcmp(const char *s, const char *t);
int strncmp(const char *s, const char *t, size_t n);
char *strchr(const char *s, int ch);
char *strstr(const char *haystack, const char *needle);
char *strcpy(char *dst, const char *src);
char *strncpy(char *dst, const char *src, size_t n);
char *strcat(char *dst, const char *src);
char *strncat(char *dst, const char *src, size_t n);
size_t strspn(const char *s, const char *accept);
size_t strcspn(const char *s, Read More
Bootstrap Exam: Quick Reference Cheat Sheet
Here’s a concise cheat sheet summarizing all the topics we’ve discussed, specifically tailored for your Bootstrap exam. You can write this on paper to use as a quick reference. Each topic is broken down to its essentials:
Bootstrap Exam Cheat Sheet
1. Basic HTML Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<link rel="stylesheet" Read More
Software Development Concepts: Top-Down, Cohesion, and More
Software Development Concepts
| Top-Down Approach | Bottom-Up Approach |
|---|---|
| 1. Focuses on breaking problems into smaller parts. | 1. Solves smaller problems and integrates them into a complete solution. |
| 2. Mainly used by structured programming languages like COBOL, Fortran, C. | 2. Mainly used by object-oriented programming languages like C++, C#, Python. |
| 3. Each part is programmed separately, potentially containing redundancy. | 3. Redundancy is minimized by using data encapsulation and data hiding. |
| 4. Communication among |
C++ Data Structures: Implementation and Testing
Binary Tree Example
#include "example_trees.h"
#include <iostream>
using namespace std;
using namespace main_savitch_11;
int main() {
sips = example();
cout << s << endl;
// searching example
int target = 10;
cout << "search for " << target << " : " << s->Count(target) << endl;
int targets[] = {23, 45, 6, 17, 12, 10, 16, 19, 22, 18, 20, 25};
int targets_size = 12;
for (int i = 0; i < targets_size; ++i) {
cout << "search for " <
C File System Exploration: Data Structures and Directory Listing
C File System Exploration
This document details the implementation of a file system exploration tool in C. It includes data structures, permission handling, and directory listing functionalities.
Data Structures
The following constants and structures are defined:
MAX_PATH: Maximum path length (150).MAX_NOMBRE: Maximum file name length (32).MAX_FICHEROS: Maximum number of files (500).
The datosF structure stores file information:
struct datosF {
char name[MAX_NOMBRE];
long size;
long inode;
char Read More
Android Spinner with SQLite Database Integration
This document details the implementation of a Spinner in Android, populated with data from an SQLite database. It includes the necessary XML layout, Java Activity, and Database Handler classes.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_ Read More
