Skip to content
  • Home
  • News
  • Sample Code
  • How To
  • Tutorial
  • Assignment Help!

Student Assignment Help

Assignment Solution @ Assignment Help on Fiverr.com

  • Home
  • News
  • Sample Code
    • C/C++ Sample Code
      • C in Linux
        • Linux Kernel Module
      • C in Windows
    • Java Sample Code
    • Python Sample Code
    • New Jersey Standard ML (SML/NJ)
    • Oracle Sample Code
    • Database Analysis and Design Sample
  • How To
    • HTML-XML-CSS
    • Java
    • MySQL
    • Oracle
    • Linux RedHat
  • Tutorial
    • System Analysis and Design
    • Data Flow Diagram DFD
    • Database Analysis and Design
    • C/C++ Language
    • WordPress
      • WordPress Basic
      • WordPress Security
  • Assignment Help!

Category: C/C++ Language

C Strut and Pointer

Posted on 2018-04-12 By Presto Bear No Comments on C Strut and Pointer

1.What is Strut in C? -Struct in C is used to visualize the object with attributes. -For example, we can have the object “dog” with attributes as name, breed, age, color. Then, we should declare the dog in struct type as: struct dog { char name[10]; char breed[10]; int age; char color[10]; }; -Here, we…

Read More “C Strut and Pointer” »

C/C++ Language

C Pointer Explanation

Posted on 2018-04-102018-04-12 By Presto Bear No Comments on C Pointer Explanation

A.Understand of Operations 1. Operation & -The operation & to get the memory location value of a variable. The location where a variable is stored. -The operation $ can use for both pointer and non-pointer variables For example: int a=5; printf(“a is located at $%x.\n”, &a);//This will print the hex value of location where a…

Read More “C Pointer Explanation” »

C/C++ Language

C #include and #include “file”

Posted on 2018-04-10 By Presto Bear No Comments on C #include and #include “file”

1.#include This variant is used for system header files. It searches for a file named file in a standard list of system directories. 2.#include “file” This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote…

Read More “C #include and #include “file”” »

C/C++ Language

How to Load and Unload a C Linux Kernel Module

Posted on 2018-04-09 By Presto Bear No Comments on How to Load and Unload a C Linux Kernel Module

Basically, load and unload a C Linux Kernel Module is including steps: A. Load a Module At the location where the C source file is located. execute one by one command: //Compile the C source file >make //Clear the log >dmesg -c //Load the Module >sudo insmod partonelist.ko //Show the log >dmesg //Show current Processes…

Read More “How to Load and Unload a C Linux Kernel Module” »

C/C++ Language

C/C++ (Window) Buffer to File, File to Buffer

Posted on 2017-06-132018-05-14 By Presto Bear No Comments on C/C++ (Window) Buffer to File, File to Buffer

Here is the sample code to: +read and copy the content of the file into a buffer +create a new file, then copy the content of the buffer into a new file while (1) { int src_fld = open(“C:\test.txt”, O_RDONLY);//return src_fld as unique file handle int error = read(src_fld, buffer, 1024);//read the file for 1024…

Read More “C/C++ (Window) Buffer to File, File to Buffer” »

C/C++ Language

C/C++ (Window) Create / Open / Read / Write a File

Posted on 2017-06-132018-05-14 By Presto Bear No Comments on C/C++ (Window) Create / Open / Read / Write a File

1.Open a file for READ ONLY int src_fld = open(“C:\test.txt”, O_RDONLY);//open function return a unique int as the handle for the file if (src_fld == -1) { printf(“Cannot find test1.txt file.\n”); exit(1); } 2.Create a file and write into int dst_fld = open(“C:\test2.txt”, O_CREAT | O_WRONLY); if (dst_fld == -1) { printf(“Cannot create test2.txt file.\n”);…

Read More “C/C++ (Window) Create / Open / Read / Write a File” »

C/C++ Language

C/C++ How to Get main Method Parameter

Posted on 2017-06-132017-06-13 By Presto Bear No Comments on C/C++ How to Get main Method Parameter

int main(int argn, char * argv[]) { if (argn == 1) { printf(“Parameter at index 0 is %s\n”, argv[0]); exit(0);//Exit without error } char strOne[1024]; if (argn == 2) { strcpy(strOne, argv[1]); printf(“Parameter at index 1 is %s\n”, strOne); exit(1);//Exit with error } }

C/C++ Language

C/C++ Common Function

Posted on 2017-06-13 By Presto Bear No Comments on C/C++ Common Function

1.Copy a String to another String char strOne[1024]; strcpy(strOne,argv[1]);//Copy parameter at index 1 to string strOne 2.Split a String with a Delimiter and take the first part char strOne[1024]; strOne= strtok(“test.txt”, “.”);//The strOne will be “test” 3.Concat Two String char strOne[1024]; strOne = strcat(“test”, “.bak”);//The strOne will be “test.bak”

C/C++ Language

C/C++ Variable Declaration

Posted on 2017-06-13 By Presto Bear No Comments on C/C++ Variable Declaration

int src_fld;//declare an int variable unsigned char buffer[1024];//declare a char array with size char * src_file_path;//declare a pointer

C/C++ Language

C/C++ How to write shell script in Linux

Posted on 2017-06-082017-06-08 By Presto Bear No Comments on C/C++ How to write shell script in Linux

In this article, we will take a look on how to write a Linux Kernel Shell Script using C/C++ First, we will take a look on the structure of a shell script program. 1.Structure of a C/C++ shell script file For example, we will write an assignment.c shell script. The structure of the file as:…

Read More “C/C++ How to write shell script in Linux” »

C/C++ Language

Posts navigation

1 2 Next
Assignment Help!!!

Key Posts

  • Sample Java Peer to Peer Chat Application
  • [SOLVED] Could not find this item. This is no longer located
  • Chapter 5 – Crow’s Foot Notation
  • Sample Java Program for Geometric Shape
  • Java Program to draw the Fibonacci Square Spiral
Assignment Help!!!

Recent Posts

  • Windows 10: How to start Command Prompt as Admin and Terminate a process
  • Java How to Trust all Email Server
  • [Solved]: Windows 10 100% Disk Usage
  • Weddings, Parties, Everything Catering Services System
  • CSC/CPE 3350 Lab 4 Part 1 – Recursive File Search
  • Zayed University
  • Kitchen Gadgets
  • Food Ordering System
  • Investment bank XYZ Ltd
  • CSC/CPE 3350 Lab 3 – The Falcon Shell
  • CSC/CPE 3350 Lab 2
  • Analyzing Cost and Benefit: Campus Bikes
  • Emirates Top Auto Parts
  • Sports News
  • Workington Council
Assignment Help!!!

Copyright © 2023 Student Assignment Help.