Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Isnubi/C_Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C_Learning

This repository contains the source code for the C_Learning project.

I'm learning C using Windows x64 platform and CLion IDE.

This project allow to follow my learning progress in C language.

Dependencies

In order to use this project, you need to have libmysql client installed.

You can find the ZIP archive for Windows here.

After extracting the archive, you have to add, in your CMakeLists.txt file, the following line:

With the others "SET" lines.

set(FULL_PATH_TO_MYSQL_CONNECTOR_C_DIR "Your path to the MySQL Connector C extracted folder")

After the "ADD_EXECUTABLE" line, you have to add the following lines:

target_link_libraries(Starting_C ${FULL_PATH_TO_MYSQL_CONNECTOR_C_DIR}/lib/libmysql.lib)
include_directories(${FULL_PATH_TO_MYSQL_CONNECTOR_C_DIR}/include)
include_directories(${FULL_PATH_TO_MYSQL_CONNECTOR_C_DIR}/include/mysql)
link_directories(${FULL_PATH_TO_MYSQL_CONNECTOR_C_DIR}/lib)

Usage

You can find differents functions, such as:

  • getHours: calculate the number of hours from a number of minutes
  • BMI: calculate the BMI of a person
  • IntToString: convert an integer to a string
  • UnitConverter: convert a number of unit to another unit
  • ContactManager: manage a list of contacts
  • DBManager: manage a database
  • Calendar: view a calendar

Possible errors

If you can't launch your code or if you can't connect to the database, you have to copy the libmysql.dll file in the same folder as the executable.

This file is located in the lib folder of the MySQL Connector C.

About

Project where I'm learning C language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages