Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

c++

  1. LTomy

    Introduction to coding - 3. Drawing into the window

    Drawing into the window Textures The class sf::Texture is used to store pictures in the memory of the graphic card, ready to be drawn. Its method loadFromFile loads the picture from the file located at the path received in argument. Note that, in C++, text is surrounded by quotes. // Defines...
  2. LTomy

    Introduction to coding - 2. Opening the window

    Opening the window The object sf::RenderWindow The following line of code defines an object of type sf::RenderWindow, which opens a window at its creation. sf::RenderWindow win(sf::VideoMode(800, 600), "Introduction to coding", sf::Style::Close); Above, we also provide arguments to the...
  3. LTomy

    Introduction to coding - 1. Introduction

    Introduction to coding About this tutorial The purpose of this tutorial is to introduce how coding works, with the C++ language here, by creating and explaining, step by step, the code of a small 2D game. In other words, the goal is to provide an overview of programming with the C++...
  4. LTomy

    Free C/C++ course

    Hello everyone, I have been working on creating a C/C++ course for quite a while now and I finally released it. You are welcome to check it out for free at https://ltcodex.com/Courses/Complete-C++-Course.html. Your comments (good and bad) are also welcomed! LTomy
  5. M

    C++ A Discussion Thread For The Hatred Of C++

    Hey there. As I'm sure every programmer on the planet is aware of, C++ is a widely hated language. One so widely hated that even one of the inventors of UNIX, Ken Thompson, spoke out about it. This was one of two quotes: So, I've decided to create this thread for everyone to rant about C++...
  6. Malcolm

    C++ How I built my age checker in C++

    Hello Code Forum! I'm back again with another How I built my series! Today, I want to show you how I built my age checker. In recent news in Canada, we have made cannabis legal. But you have to be of age to purchase. So I decided to build an age checker. I didn't put too much planning into this...
  7. Malcolm

    My basic calculator code for C++

    Hello Coders! Here's my calculator code if you wish to experiment or build onto it! :) // // Created by malcolm on 2020-07-31. // // Advance Calculator #include <iostream> using namespace std; int main(){ int firstNum {0}; int secNum {0}; int maths {0}; // Asking for two...
  8. D

    cplusplus.com

    cplusplus.com is a Website dedicated to C++ Programmers. It features Tutorials to help you get started on C++, it explains what C++ is and gives some History about the Language and there is even a Discussion-Forum that you can discuss C++ Programming with other Users on. The Site can be found...
  9. D

    C++ Is C++ A Good Language?

    Hey there. So, I'm a person who has a small amount of experience with C[I'm decent at], Java[Meh.] and Python[I'm not good with but I plan to start getting good at along with C and Java]. But, I have been considering whether if I should learn C++ or not. I've read a lot about C++ and it's a...
  10. TableFlipGod

    C++ How to call a function / Edit a value in c++ from c#

    So currently I have a project that wraps around this open source program : Here. And I want my form radio button to set the cap to 30 fps or 60 fps. There is a config type thing in the code shown here #include <d3d11.h> #pragma comment(lib, "d3d11.lib") #include "sigscan.h" #include...
  11. Malcolm

    C++ How do you swap variables with C++?

    Hello Coders! I'm looking for help swapping variables with C++, I know that you can use a temporary variable but you can also do it without it. Can someone show me both ways? int a = 5; int b = 10; //I want A to 10 and B to be 5. // I think I have an idea, is this correct? a=a+b; b=b-a
  12. Malcolm

    C++ Quick understanding of Compiler Errors & Warnings in C++

    Hey everyone, so I've been learning C++ these last couple weeks and I thought perhaps I could share what I had learned to help you out. I believe that one of the best things to do to help you learn is to teach others, so here I am! I'll keep this brief and simple, I'll also include the URL to...
  13. Malcolm

    C++ What would be an easy program to build with C++?

    Hi guys, I'm currently learning C++ and I'm kinda wondering what I should build to practice my C++. I know it shouldn't be too complex or I'll never finish it but I'm not sure what to build, I was thinking of a calculator or even a notepad but would that be too much? Any ideas?
Back
Top Bottom