I'm sorry, I did not word my sentence correctly. I deleted all files that were no relevant to the problem. I was able to delete all the other files and get the same error with just he files I...
Type: Posts; User: cs_student
I'm sorry, I did not word my sentence correctly. I deleted all files that were no relevant to the problem. I was able to delete all the other files and get the same error with just he files I...
I am getting the linker error
/var/tmp//ccyucL5u.o(.text+0x8d): In function `jp::SplashState::SplashState(std::string, int*, std::string)':
: undefined reference to `jp::State::~State()'...
After the conditional to check for the 'm' char, you re-declare the "answer" variable.
Did you put
#include <iostream>
at the top of your source file? (it might not be in your path)
Also, remember that cout and cin are in namespace std.
In the case of
Object obj1;
Object obj2;
obj1 = obj2;
The object is copied.
Create a singly linked list class which handles the nodes for you.
Try implementing something along the lines of
class SList
{
private:
Node* head;
You could do it via the bubble sort algorthm. Just create an iterator which iterates through your linked list for you and have a swap method that swaps the two nodes depending on a conditional which...
Check out the floor and ceil methods.
Regards,
cs_student
You should be using the preprocessor to ensure that nothing gets included more than once.
ie
#ifndef HOME_HPP
#define HOME_HPP
#include "Home.hpp"
You really need to format your code as it would make it easier for you to figure out the problem.
What is it currently doing, and what do you expect as an output?
If you expect to show each...
A char can easily be casted into an int. You can use this to find the corresponding Morse code without having a separate array.
In ascii the character 'A' is represented by 65. Thus if the Morse...
Can you not simply reverse the loop?
reset the values of min and max
Create another while loop
while ( min >= 0) { ... }
Then work your way down
Something like
Virginia (the state government that is) has set up some sort of agreement between the public universities and community colleges. I can take my first two years at a local community college and they...
Since I was nine I have always known that I was going to go to college. Until I got a computer my freshman year in high school, I wanted to be an astronomer. Since then I have wanted to be a...
So far I've drawn up a detailed document which consists of core features which are a necessity to the project, then secondary features which would enhance the project.
I've also explored...
I'm a self-taught programmer (start my CS degree when I go to uni next year). So far I've only completed small games such as pong, snake, etc. I've also created small gui programs which allow the...
I'm rather positive that glut works on Linux, Mac, and Windows (maybe others, IDK).
@OP
To compile via command line without make just use
g++ -o myprogram mysource.cpp -lSDL
However, I...
Nope, it's a C graphics API, so you can use it with C or C++.
There is a pretty good guide for setting up and creating a simple test program at lazyfoo.net.
Just skip the part about downloading and installing the rpm since you have already installed the deb....
I've been trying since yesterday. The page still doesn't load for me. I think the server is down.
Do you have an alternate link?
Thanks,
Joseph
I want to create an IRC client. However, I'm not sure as to how I to go about implementing the protocol.
After I create a socket that is connected to the server, how do I know what to listen for...
I want to create a simple IRC client. After reading online, I have learned they use something called "Remote Function Calls." However, I'm having a hard time understanding how to implement them. ...
You may want to try video tutorials rock.com for tutorials as the formerly suggested ones at nehe are getting to be even more outdated (GLUT itself is old) and do not meet my standards.
You can...
I think you mean you want to call two methods at the same time. This is impossible on single core processors. Your operating system tricks you into thinking that it performs many tasks at once.
...
How can I make dynamic_array simply point to the data that temp_array points to?