User Profile
Collapse
-
How do you install the mouse with allegro?
How do you install the mouse with allegro...? -
I haven't posted the code because it has quite a few classes and I can bet that the problem isn't in the one that it says its in.
Edit: I fixed it by putting "class Collision" at the top of my code! -
This is a in-built library which are already coded to make our lives easier when doing programming.
For exmaple <iostream> needs to be included so we can use "cin" & "cout"
Each library has a specific set of functions that we use. Another example is <sstream>, it provides us with templates and types that enable interoperation between stream buffers and string objects.Leave a comment:
-
How to read a text file - C++
This article is the second part of the article I made earlier on how to create a text file.
In this article you will be learning how to read the text file that we created, I will be teaching you how to put this code with the code we made but if you want to put it into a different project or source file and compile it separately that will work also.
Now lets start the code:
You should already have this in your... -
I did post a link but edited it out because it is broken.Leave a comment:
-
How to write a text file - C++
In this artile you will learn how to write a text file using c++.
First, create a new project (I recommend Console App)
Delete everything that's there and we will start from scratch; This will help you learn.
Start your code by putting this on the first three lines:
Code:#include <iostream> #include <fstream> using namespace std;
Now lets start the code:... -
iso c++ forbids declaration of 'Collision' with no type
I get that error above on a few line in my code.
Code:#include "Collision.h" Collision::Collsion() { //this line } Collision::~Collision() { } void Collision::Init() { loadCounterX = loadCounterY = 0; Collision::LoadCollisionMap("colmap1.txt"); { void Collision::Update()
No activity results to display
Show More
Leave a comment: