Forum: C++ Oct 8th, 2006 |
| Replies: 7 Views: 4,088 #include<iostream>
#include <fstream>
using namespace std;
int main()
{
const int rows=4;
const int columns=5;
char wksales[rows][columns]; |
Forum: C++ Oct 8th, 2006 |
| Replies: 7 Views: 4,088 The file is in Notepad so I used that code.I also change the char array to int it's not working. |
Forum: C++ Oct 8th, 2006 |
| Replies: 7 Views: 4,088 |
Forum: C++ Oct 8th, 2006 |
| Replies: 7 Views: 4,088 Hi I am new to this forum and to c++.I am having problems reading data from a txt file into a 2d array. The data is in the file like this
1 5 87
3 3 24
2 4 62
4 2 22
I am only suppose to... |
Forum: C++ Sep 27th, 2006 |
| Replies: 6 Views: 2,737 |
Forum: C++ Sep 27th, 2006 |
| Replies: 6 Views: 2,737 #include <iostream>
#include<iomanip>
#include <cmath>
usingnamespace std;
int main()
{
char choice;
const int arraysize=20;
int num[arraysize]; |
Forum: C++ Sep 26th, 2006 |
| Replies: 5 Views: 5,393 entire code
#include <iostream>
#include<iomanip>
#include <cmath>
using namespace std;
int main()
{
char choice; |
Forum: C++ Sep 26th, 2006 |
| Replies: 5 Views: 5,393 I have #include<iomanip> header also and it's still not working.I am getting 2 dec places but it's .00 Why is that?Please help.
here is the code
cout << showpoint << fixed << setprecision (2);... |
Forum: C++ Aug 9th, 2006 |
| Replies: 2 Views: 913 Hi
I am new to c++ and I have a simple program that I am trying to understand .Here is the program If anyone can put some comments to what the codes mean I would be grateful.//Explain Please what... |