peri hokiperihokiclarustologisticsrimashaop.compola taktis menang gates of olympus x1000 perihokipemain perihoki bongkar trik jepep starlight princess x1000perihoki beri panduan lengkap bermain mahjong ways 2 pgsofttips cara penghasil uang pgsoft mahjong ways 2 perihokimahjong wins 3 perihoki memberikan penggali terbesarfenomena gates of olympus buka peluang besar bagi duta76cara dapat pola emas rahasia di duta7 wild west goldtrik menang pgsoft mahjong ways 2 modal receh maxwin duta76duta76 main pgsoft mahjong ways 2 di sela istirahatscatter hitam mahjong wins 3 spin pasti jepe duta76perihoki spin mahjong ways 2 pgsoft scatter hitam maxwinsimbol mahjong wins 3 yang sering muncul di awal perihokitrik gampang menang mahjong winscuan mahjong wins 3 tanpa hentipola spin taruhan kecil mahjong winsstrategi kunci scatter hitam beruntungacor total mahjong wayskemenangan maksimal mahjong wayskemenangan pria pekanbaru mahjong waysmahjong wins3 fenomena baru sumatera baratmenangkan mahjong dengan lincahmenembus batas keberuntungan mahjong waysmenjajal keberuntungan di mahjong wayspola gratis mahjong ways1scatter hitam senjata rahasia mahjong winsteknik spinning menguntungkan untuk scatter hitamanalisis rtp tertinggi mahjong winsfenomena scatter hitam mahjong winsibu rumah tangga dan keberuntungan mahjongkeseruan main mahjong wins3menang mahjong pengguna baru di sosial mediamenghargai setiap momen di mahjong waysserunya main mahjong di warung internetspin slow motion mancing scatterstrategi jitu maxwin mahjong waysstrategi jitu menang mahjong modal kecil jackpot besaranak kampung papua menggemparkan mahjongkeajaiban scatter hitam mahjong wayskeberhasilan joni mahjong winskejaiban mahjong ways di ujung jalanketua mahjong wins3 kehadiran kemenangan dimulai dari balimahjong kehadiran yang menguntungkanmahjong menggila adat88panduan kilat raih 108 jutatips memenangkan mahjongbarista kopi menang 110 juta spin mahjongdakota76 scatter hitam mahjong wins 3gagal cpns menang mahjong wins 3 rp120 jutakisah karyawan minimarket dapat thr lebih awal mahjong winskisah pelajar sma kuasai mahjong wins 3 inspirasi sekolahkisah penjaga parkir tanah abang motor baru mahjong winskisah sukses ibu rumah tangga bandung mahjong winsmahasiswa kkn beli iphone15 mahjong wins3 dakotamantan anak band influencer mahjong scatter hitampola rtp senin gates of olympus guru matematikatukang cuci motor menemukan keberuntungan di mahjong

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 282

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent

Filename: Session/Session.php

Line Number: 294

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 304

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 314

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 315

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 316

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 317

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: Session/Session.php

Line Number: 375

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Filename: drivers/Session_files_driver.php

Line Number: 108

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Cannot change save handler when headers already sent

Filename: Session/Session.php

Line Number: 110

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot start session when headers already sent

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct

File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once

File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once

Download C Free để học C/C++ và khắc phục lỗi hàm void
STARTING
CONTROL STATEMENT
FUNCTION
ARRAY & POINTER
OOP
STL
ITERATORS
OTHER FEATURES
CÁC CHỦ ĐỀ
BÀI MỚI NHẤT
MỚI CẬP NHẬT

Download C Free để học C/C++ và khắc phục lỗi hàm void

Trong bài này mình sẽ hướng dẫn các bạn download C Free và cài đặt trên máy tính để học C++. Đây là một phần mềm tương đối nhẹ và miễn phí, phù hợp với những bạn newbie mới học lập trình C/ C++.

test php

banquyen png
Bài viết này được đăng tại freetuts.net, không được copy dưới mọi hình thức.

Công việc đầu tiên bạn cần phải làm trước khi học C++ là phải tìm một phần mềm đơn giản nhưng chứa đầy đủ các thư viên để có thể biên dịch được. Trước đây, lúc học đại học thì mình sử dụng Visual Studio của Microsoft, nhưng hiện tại mình biết có một phần mềm rất đơn giản và nhỏ gọn phù hợp với việc học C++ đó là phần mềm C-Free.

1. C-Free là gì?

C-Free là trình soạn thảo và biên dịch code mạnh mẽ dành cho các lập trình viên C/C++, nó có nhiều tính năng tương tự như Visual Studio nên rất phù hợp cho việc học. Và sau đây là một số tính năng hỗ trợ soạn thảo của c-free:

Hỗ trợ các mẫu code thường sử dụng:

Bài viết này được đăng tại [free tuts .net]

tinh nang cua cfree 5 png

Hỗ trợ các màu sắc khác nhau với các dòng code có thuộc tính khác nhau như Class/Struct/Union hay Functions, Variables, Constants khi soạn thảo code:

tinh nang cua cfree 5 2 png

Hỗ trợ các gợi ý các từ khoá giúp các lập trình viên có thể code nhanh và dễ dàng hơn:

tinh nang cua cfree 5 3 png

C-Free cung cấp cho bạn khả năng tìm kiếm, tra cứu một đối tượng, hàm, biến… khi soạn thảo code giúp lập trình viên có thể dễ dàng tìm ra hàm này được khai báo ở đâu, thuộc class nào, thực thi trong hàm nào:

tinh nang cua cfree 5 5 png

Và còn rất nhiều tính năng khác các bạn có thể tham khảo tại trang: http://www.programarts.com/cfree_en.

2. Download C-Free 5 full free

Sau đây tôi xin hướng dẫn mọi người cài đặt và sử dụng soạn thảo của C-Free 5.

Các bạn có thể tải về phiên bản dùng thử của C-Free tại đây:

Việc cài đặt C-Free giống như một phần mềm bình thường rồi nên mình sẽ không hướng dẫn cài đặt.

3. Hướng dẫn sử dụng C Free

Sau khi tải về chạy file setup và cài đặt chương trình, sau khi cài đặt xong khởi động chương trình ta sẽ nhận được hình như sau:

download va cai dat c free 5 png

Tại đây C-Free cung cấp cho bạn một số chương trình mẫu như CppHello.cpp. Bạn có thể chọn một chương trình để xem hoặc nhận Close để vào màn hình chính, tại màn hình chính ta có những chức năng như sau: New (hoặc nhấn tổ hợp phím ctrl + N) để tạo mới một tập tin:

download va cai dat c free 5 1 png

Các phím tắt cơ bản trong C-Free như F1 để tra cứu thông tin hàm hoặc dòng lệnh, F5 để biên dịch chương trình.

Bạn hãy hãy chọn vào file CppHello.cpp lên thì sẽ thấy nội dung như sau:

#include <iostream.h>
void main()
{
    cout<<"Hello World!"<<endl;
}

Nhấn F5 để chạy chương trình này thì có lúc C-Free sẽ báo lỗi phải return về kiểu int. Đây là lỗi mình thấy khó chịu nhất khi sử dụng C-Free.

Tóm lại:

  • Bạn có thể sử dụng void main khi code mã C++ trên Visual Studio
  • Riêng các IDE khác thì bạn phải sử dụng int main nhé.

Bạn hãy sửa lại nội dung của file thành:

#include <iostream.h>
int main()
{
    cout<<"Hello World!"<<endl;
    return 0;
}

Sau đó nhấn F5 để chạy thì thu được kết quả như sau:

chay c thanh cong JPG

Cũng có nhiều ý kiến cho rằng Visual quá dễ dãi trong việc build mã nguồn, bởi thực tế thì ít ai sư dụng hàm kiểu void nữa. Nhưng riêng cá nhân mình thấy việc phân chia ra hai loại hàm như của Visual rất rõ ràng, nhất là phù hợp với khái niệm hàm và thủ tục trong Pascal.

Lưu ý: Vì C-Free là một phần mềm nhỏ gọn nên không có nhiều thư viện như bạn sử dụng Visual Studio, nhưng về cơ bản thì nó có đầy đủ những thư viện cần thiết. Vì vậy nếu trong quá trình sử dụng mà phát sinh lỗi, hoặc bạn cần sử dụng thư viện nâng cao hơn thì tốt nhất hãy sử dụng Visual Studio nhé.

Tải Visual Studio

4. Lời kết

Với phần mềm C-Free này bạn có thể dễ dàng học C++ mà không cần phải sử dụng Visual Studio nặng nề kia nữa. Tuy nhiên mỗi phần mềm lại có những ưu điểm và nhược điểm khác nhau, hoặc cũng có thể do sở thích của mỗi người mà chọn phần mềm khác nhau.

Bài tiếp theo chúng ta bắt đầu học bài đầu tiên của C++ đó là bài một số khái niệm trong C++.

Danh sách file tải về

Tên file tải về Pass giải nén
Download C-Free 5 freetuts.net hoặc gameportable.net

Cùng chuyên mục:

Các hàm xử lý mảng đa chiều (array.h) trong C/C++

Các hàm xử lý mảng đa chiều (array.h) trong C/C++

Các hàm xử lý ngày tháng (datetime.h) trong C/C++

Các hàm xử lý ngày tháng (datetime.h) trong C/C++

Các hàm xử lý số thực (float.h) trong C/C++

Các hàm xử lý số thực (float.h) trong C/C++

Các hàm xử lý số nguyên lớn (bigint.h) trong C/C++

Các hàm xử lý số nguyên lớn (bigint.h) trong C/C++

Các hàm xử lý thời gian (time.h) trong C

Các hàm xử lý thời gian (time.h) trong C

Các hàm xử lý chuỗi (string.h) trong C/C++

Các hàm xử lý chuỗi (string.h) trong C/C++

Thread Pools và Parallel Algorithms trong C++

Thread Pools và Parallel Algorithms trong C++

Tạo và quản lý các Multithreading trong C++

Tạo và quản lý các Multithreading trong C++

Xử lý ngoại lệ khi làm việc với Memory Allocation trong C++

Xử lý ngoại lệ khi làm việc với Memory Allocation trong C++

Try, Catch, và Throw của Exception Handling trong C++

Try, Catch, và Throw của Exception Handling trong C++

Cách sử dụng Lambda Expressions trong C++

Cách sử dụng Lambda Expressions trong C++

Sử dụng weak_ptr trong C++

Sử dụng weak_ptr trong C++

Sử dụng shared_ptr trong C++

Sử dụng shared_ptr trong C++

Sử dụng unique_ptr trong C++

Sử dụng unique_ptr trong C++

Tổng quan về Smart Pointers trong C++

Tổng quan về Smart Pointers trong C++

Sử dụng Iterators trong STL của C++

Sử dụng Iterators trong STL của C++

[Iterator] Sử dụng Vector trong C++

[Iterator] Sử dụng Vector trong C++

[Iterator] Sử dụng trong List trong C++

[Iterator] Sử dụng trong List trong C++

[STL] Sử dụng Vector trong C++

[STL] Sử dụng Vector trong C++

Tổng quan về Iterators trong C++

Tổng quan về Iterators trong C++

Top