Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~5K People Reached
About Me

A lover of cricket !!!!!

Favorite Forums
Favorite Tags
c++ x 17
Member Avatar for waqas.zafar.125

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; void Bubble_Sort(string arr[], int length); int main() { int length; length=10,000; ifstream MyFile; ofstream out; string …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for waqas.zafar.125

Hi there! I have a problem in dealing with dynamic arrays. I have initialized the objects and now i want to print them. My main function looks like this: char* namesList[] = {"Brad Shaw","Aimen Adams","Sal Dimitry","Cristi Anreaz","Poala James"}; int idList[]={232,444,135,52,134}; Team t; Team t1( namesList,idList,5,"waqas"); //t1.Print_team(); My class Team looks …

Member Avatar for David W
0
203
Member Avatar for waqas.zafar.125

Hi there! I have to read data from a file and load it into an array: here is the data of the text file: Team Creative 6 100 Anwar Khan 201 Belal Ahmed 150 Sara Amjad 400 Nida Khawar 342 Rehan Sheikh 341 Nadia Kanwal My code is: class Player …

Member Avatar for Unimportant
0
188
Member Avatar for waqas.zafar.125

Hi there! I have a question related to filing in c++. I have to read data from a text file and load it into 2-d dynamic array. Here is the problem statement: 5 3 3 8 1 4 2 5 7 2 4 6 8 0 9 3 1 2 …

Member Avatar for Kanoisa
0
161
Member Avatar for waqas.zafar.125

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 using mouse . All the graphic …

Member Avatar for rubberman
0
218
Member Avatar for waqas.zafar.125

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 get started ?

Member Avatar for Ketsuekiame
0
234
Member Avatar for waqas.zafar.125

hey guys ! i am working on a card game .. so far i have printed the cards and then shuffled them .. Now it says that Each player has a stack of cards. At the beginning of the game before dealing, this stack is empty. When dealing the cards, …

Member Avatar for Agni
0
166
Member Avatar for waqas.zafar.125

hey guys ! i have a problem relating to linked lists .. Make a class called Card. Each card is represented by a suit and a rank. You can keep both as strings. Implement getters and setters for the Card class as well as a print function. A 7 of …

Member Avatar for tinstaafl
0
193
Member Avatar for waqas.zafar.125

hey guys ! i am unable to understand how to implement the function insert at head and insert at tail .. class Book { public: char * title; float price; // constructor for class Book Book () { char* title = new char[20]; strcpy(title,"untitled"); price = 0 ; } void …

Member Avatar for rubberman
1
177
Member Avatar for waqas.zafar.125

i have a problem regarding classes . i have been given two files vector.h and set.h the vector.h file is : #ifndef VECTOR_H #define VECTOR_H class vector{ private: int *array; int max_size; //max size of vector int elements; //total element in vector public: //initializes everything to zero/null DefaultVector(); //initializes the …

Member Avatar for rubberman
0
159
Member Avatar for waqas.zafar.125

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 …

Member Avatar for ravenous
0
152
Member Avatar for waqas.zafar.125

hey guys !!! i have to sort the students according to their first and last names here is the code i have written so far ,, it inputs the first names and last names and then it stops working . please help me with this ,, thank u #include <iostream> …

Member Avatar for tinstaafl
0
197