The best alternative to using arrays is Vectors ...you should quit this.
Take a gander at here
Type: Posts; User: jeedi khan
The best alternative to using arrays is Vectors ...you should quit this.
Take a gander at here
Why you wants to do so?
You can ask for it separately instead of in pair.
std::setw is correct or not as its not working for me ...even if you write std:: and see the drop down menu provided by compiler environment you didn't see such a STUFF........
As Far they are BOTH new to me,and many people suggested me to go for AI, and AI seems to be interested,,
ACTUALLY they are both technical elective and one has to be chosen among them ....REALLY i am interested in BOTH....but at the time being for graduation degree i can take one only.
I asked for "how to use std instead od declaring it "using namespace std" and also whether std::setw is correct or not as its not working for me ...even if you write std:: and see the drop down menu...
Hi all,,,
i want to know about two choices of courses .i know its off topic here but i think if anyone has suggestions then please do comment me.
The choice is between Artificial Intelligence...
Also std::setw is also not working and
std::ifstream inFile; // incomplete type is not allowed
std:: ofstream outFile;// incomplete type is not allowed
Thats new to me :
OK, to get rid of so many header files and including at most <string> <vector> <stdafx> then will you let me know how to avoid using namespace std i.e should i go for...
cout << static_cast<int>(word[i]);
where i reaches upto 9 .Isn't it too much?
int main()
{
float x=1.22;
char*word=(char*)&x;
cout<<word[0];
return 0;
}
EVEN for a function intro():
void intro()
{
cout<<"\n\n\n\n";
cout<<"\t\t***************************";
cout<<"\n\t\t BANK MANAGEMENT SYSTEM\n";
...
Now here comes the Problem of cout while proceeding::(
class account
{
public:
int acno; //account no.
string name; //accountholder name
int dep; ...
Now it looks like this:
class account
{
public:
int acno; //account no.
string name; //accountholder name
int dep; //deposit
char type; //C? or S?
YES,after a little editing it is also not giving now cout error with me
I would really like to know about it...Which compiler should i go for ?
One thing is that yet i haven't declared any thing private in the Class but its still complaining about all member varaiables..
such as:
error C2248: 'account::name' : cannot access private member...
Suggestion Noted for "comments";;;
With Me on MSVS 2010 it is not mentioning any Comment error But other issues still here same...STRANGE!!!
Okay i will go for comments but what about the other errors
Dear this is turning into Arguments instead of any positive solution
SHOULD i go for pseudo code ?
because for errors one have to compile all code and exception checking is possible if you compile it on your machine for which Complete code is required.
[CODE]
#include"stdafx.h"
#include<iostream>
#include<fstream>
//#include<ctype.h>
#include <limits>
#include<iomanip>
#include<conio.h>
#include<stdio.h>
#include<string>
The cout :ambigious error were due to modofication to complete code(which i already posted) in order to avoid Binary I/O usage....
I am not disregarding the suggestions DEAR....
NOW keeping in view the code i already posted and hoping that you got idea what i want to do..here is what i did...
class account
{
...