So which function should i use ?
Type: Posts; User: waqas94
So which function should i use ?
Hey Guys! I have to read data from a text file, load it into an array and then bubble sort it! Here is my code:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;...
Bro, I have initialized the object like u mentioned above but it gives an error:
Person* person[10];
for (int i=0; i<5; i++)
{
person[i] = new Student("waqas","waqas93","A");
...
Hi There! I am facing problem in initializing the objects of a class. The question is :
Make a Person Class that stores the name and email address of a person. Add any appropriate methods. Create...
Not working!
How to store No_Of_Players at a class level ??
Hi there! I have a problem in dealing with dynamic arrays. I have initialized the objects and now i want to print them.
// main
char* namesList[] = {"Brad Shaw","Aimen Adams","Sal...
what should i do to the constructor in the main function?
Hi there! i am facing a problem when i call the overloaded constructor from the main function. For example:
const char* namesList[5]= {"Brad Shaw","Aimen Adams","Sal...
Brother can u please tell a bit of syntax of the solution u have told me ? thank you
hey guys ! i am new to graphics in c++ .. i have to develop an application called " paint " . i have to implement it using classes ( and inheritance in classes ) . For example i have to draw a line...
Mouse programming has not been taught in the class . I searched it on google but couldn't find appropriate answer that's why i posted this question here .
hey guys !! I am new to graphics in c++ . the question says that your code should facilitate the user to draw different shapes using a mouse . for example if i have to draw a circle then how should i...
the question says that this game can be played among any number of players and that would create unequal distribution of the cards .. i am actually trying to find out any algorithm for this but i'm...
Ok then please help me in implementing the function void Distribute_cards() .
Bro , i have clearly mentioned above in my question statement that i am facing problem in the distribution of the cards and i KNOW that nobody will post a complete solution for me as it is not useful...
hey guys ! i am working on a card game in c++ . so far i have printed all the cards and shuffled them . now i have to distribute the cards among the players .. this is creating problems for me and i...
Hey Guys ! i have a question related to classes ..
s played using the standard French deck with 52 cards. Each card is from one of the 4 suits, clubs (♣), diamonds (♦), hearts (♥) and spades (♠)....
Hey Guys ! i have a question related to classes ..
s played using the standard French deck with 52 cards. Each card is from one of the 4 suits, clubs (♣), diamonds (♦), hearts (♥) and spades (♠)....
????
hey guys ! i have been given an assignment as pasted below :
You will be given two files.
Grid.txt will contain a grid of letters (as shown below)
j q v r l k u v e r s i o n l
d v k e r n e...
bro i have mentioned the exact location of the problem and i know that nobody will download my code and compile it and try to sort out the problems.
hey guys ! i have been given an assignment . the question is stated below :
1. Create a struct Product with fields id (int), name (char*), price (double), and isAvailable (bool).
2. ...
how do i keep track of the rows and columns ?? it says that your program should be able to read the size of the grid ..
hey guys !! i have been given an assignment and i dont know how to get started .. the question is :
You will be given two files.
Grid.txt will contain a grid of letters (as shown below)j q v r l...