Hello,
I want to write a program that will print all the variable names used in that code. Just like "who" in MATLAB prints all the variables used in the program.
Please guide me a bit.
Type: Posts; User: Fatima Rizwan
Hello,
I want to write a program that will print all the variable names used in that code. Just like "who" in MATLAB prints all the variables used in the program.
Please guide me a bit.
#include <iostream>
using namespace std;
class Matrix
{
int rows;
int columns;
int **matrix;
public:
Matrix operator + (const Matrix &a,const Matrix &b)
Error:binary 'operator +' has too many parameters.
Hello, I am making a matrix class with basic operations like addition, subtraction, Multiplication.
I have made a constructor that takes as input the rows and columns. I am done with
most of the...
Before coming to the real problem. Let me tell you that I am a newbie to C#, I have C++ and OOP concepts.
I am given a task (Not a homework assigment) to make a windows form application that takes...
I am working on Microsoft Visual C++ 2010.
I have made a Win32 Console Application project. I just wanted to Know is there anyway to add a picture in the code. JPEG file etc etc.
I am working on A tree search funtion. Currently I am just trying to see whether its working or not. Like I have added data in root node and now i am comparing it with the input. But the If condition...
Didn't get you , How to involve the root. Plus I m making the tree of height 2.
I have made a class of tree with 12 children. I insert the data in the tree systematically, Like first root, then first children , second children, and so on.
I am having problems in coding this...
hello,
I hope everyone is fine. =)
I have made a red black tree code, with the basic functionalities of insertion, deletion and Search. Presently, I am not getting any error, but when the code...
Kindly Indent your code , and use code tags.
I want to make a stack based Postfix to infix converter. I don't know how to start with it. Presently I have a class of stack. Thats all.
Can anybody help me with the algorithm.
Ok thnks . And what about the second problem
if (first->exponent == second->exponent )
{
result->coefficient =first->coefficient - second->coefficient;...
Hi , I posted previously this problem, but dint get help , so i m posting it again , hoping i will be helped.
I have created a doubly linked list of polynomials. Now I m done with the basics.
I...
I have made a doubly linked list of polynomials and now i am using operator overloading to add two polynomials. The add function see its the exponents of the two polynomials are same and then add...
I dun know how to work with the templates i would be thankful, if u point out where my code needs to changed i would be thnakful.
void insertionSort()
{
node* temp=head;
while(temp->next != NULL)
{
node* second =temp->next;
if (second->exponent==temp->exponent)
{
temp=temp->next;
how ??
void Sort()
{
node* first;
node* second;
node* temp;
first=head;
while(first->next!=NULL)
{
I have made a linked list with the following functions.
class node
{
public:
int data; node* next;
};
class linkedList: public node
{
cout<<"Press number for required drive\n";
cout<<"1:---------------- DRIVE C\n";
cout<<"2:---------------- DRIVE D\n";
cout<<"3:---------------- DRIVE E\n";
cout<<"4:---------------- DRIVE...
Just wanted to know how to move the axis , I want my program text appear at the centre of the window, I m workin on visual C++ 2010 beta.
string* getFname()
{
if((hfile=_findfirst("C:/tr1/*.txt",&c_file))==-1)
{}
else
{
int position=0;
str[0]=c_file.name;
I have made the amendments now if I have found the word required in file, i want to output its attributes. like file name, its location , time it was creatd , its size etc. Kindly help me with this.
Ok, thanks
Now if the given string is found in the file. I want to print all the attributes of that file.
Is there any function for this purpose?Any help!
#include <iostream>
#include...