Tags:C++ Questions | 135 views
#include <iostream>
#include <list>
using namespace std;
template <typename T>
class superlist : public list<T>
{
public:
// squish() is a mutator that "squish" together adjacent duplicate
// elements in a list.
//
// Example #1:
// [3, 3, 4, 3, 3, 3, 2, 8, 8]
// becomes…
[...]
Tags:C++ Questions | 187 views
Hi guys, uve been workin on a restaurant program and im tryin to write the time to the end of the receipt. so im writing information to a file. only problem is i cannot make my time function return the current time. I’ve tried everything. can you guys help??
im using:
char Time::currentTime()
{
time_t rawtime;
struct [...]
Tags:C++ Questions | 121 views
Hello, I am wondering how its possible, to make a server that you can
connect to it, through IP and Port and than send data to it,
For example I am trying to make a simple multiplayer game. But I am really
amateur on connections etc. So please help me out.
Tags:C++ Questions | 155 views
Hi there!
I’m new to c++ and I’m having problems with ifstream. I assume that my question is pretty stupid but here you go:
I’ve got something like:
ifstream infile(inname);
Furthermore I do have an array - let’s call it Array - which contains several filenames I want to choose one from. With wrong synthax I want:
ifstream infile(Array[5]);
But [...]