Wow! Thank you all for your responses, the discussion turned out to be very helpful.
Just as a comment, after reading your posts i encountered with the following FAQ entry in the page of the DTL...
Type: Posts; User: ivotron
Wow! Thank you all for your responses, the discussion turned out to be very helpful.
Just as a comment, after reading your posts i encountered with the following FAQ entry in the page of the DTL...
I've found the following:
SOCI - The C++ Database Access Library http://soci.sourceforge.net/index.html
SimpleDB http://simpledb.sourceforge.net/
Oracle, Odbc and DB2-CLI Template Library...
Do you know if there's a DBMS independent library like JDBC? So far, I've seen SimpleDB and DTL, but they don't seem to be well supported.
If you want School to be a template you have to declare it as such and the data type passed to School will be passed to Queue:
template<class T>
class School{
public:
.
.
Wait! You're right, my final version is not that one, is this one:
int main() {
std::ifstream file("file.txt");
unsigned long long oldval, newval;
while(!file.eof()) {
if(file...
Hi, this is my last working version
int main() {
std::ifstream file("file.txt");
unsigned long long oldval, newval;
while(!file.eof()) {
file >> oldval >> newval;
std::cout...
Thanks a lot for your time. I changed the data type to long long and it worked.
>> while(!file.eof())
> This is bad, see the FAQ
The eof that the FAQ talks about is from C, i think that the...
Hi,
I have very strange problem with std::fstream. I want to read a simple two-column space-separated file with the following code:
#include <iostream>
#include <fstream>
Code: