Forum: C++ Feb 6th, 2009 |
| Replies: 6 Views: 396 I don't understand what you want but check this . Its work
#include<iostream>
//#include<conio>
using namespace std;
char SearchString(char[2][10],char[10]);
int main()
{ |
Forum: C++ Feb 4th, 2009 |
| Replies: 11 Views: 871 program can not find the file. Maybe program and file are not in the same directory . Put the full path to the file |
Forum: C++ Feb 3rd, 2009 |
| Replies: 5 Views: 335 #include"stdafx.h"
#include <cmath>
#include <iostream>
using namespace std;
class Int
{
private: |
Forum: C++ Feb 3rd, 2009 |
| Replies: 6 Views: 333 Try this
ifstream input("test.txt");
char f1 [250], f2 [250];
while (!input.eof())
{
input.getline(&f1[0],250);
input.getline(&f2[0],250); |
Forum: C++ Nov 14th, 2008 |
| Replies: 9 Views: 2,837 double RoundDouble(double doValue, int nPrecision)
{
static const double doBase = 10.0;
double doComplete5, doComplete5i;
doComplete5 = doValue * pow(doBase, (double)... |
Forum: C++ Jul 13th, 2008 |
| Replies: 14 Views: 1,341 OK I tink if code pass all unit tests it's good code. Your code is good, but use std::string not char array with cin >>. If you want to catch all words that have ' , you can use boost regex lib... |
Forum: C++ Sep 17th, 2007 |
| Replies: 2 Views: 5,277 May bee this will help you
[code=c++]
vector<long double> C sum(const vector<long double>& A0,const vector<long double>& A1)
{
......
}
[code]
Then you can write somethink like this... |
Forum: C++ Sep 12th, 2007 |
| Replies: 10 Views: 1,534 ANSI-ISO C++ standart doesn't allow it. Do not believe in Microsoft at 100% |
Forum: C++ Sep 12th, 2007 |
| Replies: 10 Views: 1,534 Put space between two templates
wrong : vector<vector<string>>& edges
good: vector<vector<string> >& edges |
Forum: C++ Sep 5th, 2007 |
| Replies: 33 Views: 4,020 Another article from google
http://www.angelfire.com/country/aldev0/cpphowto/cpp_BinaryFileIO.html |