51,593 Topics

Member Avatar for
Member Avatar for tnd2491

Hello All; What i need to do is to display 1000 logs coming from the server into 20 rows continuously.Does anyone have any idea?? I am storing the data strings coming from the server into the vector container. And that i have to display continuously from 0th Row row to …

Member Avatar for Duoas
0
217
Member Avatar for mrhunt
Member Avatar for hira_5
Member Avatar for it@61@sec

I have the following struct definition: struct finfo { string filename; long fsize; bool operator() (finfo i, finfo j){return (i.fsize > j.fsize);} } fstruct; And the following vector definition: vector<finfo> fdata; In the code I use the following statement to sort the vector elements by fsize: sort(fdata.begin(),fdata.end(),fstruct); This works perfectly …

Member Avatar for it@61@sec
0
990
Member Avatar for radhikachopraaa

can i get a program to find whether the character is an alphabet , number or a special character.

Member Avatar for L7Sqr
0
101
Member Avatar for ALEXANDER R
Member Avatar for ALEXANDER R
0
278
Member Avatar for khadikhel.orakzai

write a c++ program that will do the . Enter 10 integer . Pushing on stack and poping on user choice . pushing on queue and poping form queue . Bring the integer in order. Display the calculator selecting oprtion by user choice (+,-,*,%)

0
92
Member Avatar for Transcendent

This what I'm trying to do: Type two or more lines of text into a file. Write a program to open the file, reading each word into a vector<string> object. Iterate over the vector, displaying it to cout. That done, sort the words using the sort() generic algorithm But I'm …

Member Avatar for Lerner
0
292
Member Avatar for umairshabbir6822

******I need help with my project. Here's the specs********** For this project you will implement an AVL tree template and use it to create a database for a music collection. Logically, each node of the AVL tree will store a record containing information about a particular recording artist:  artist …

Member Avatar for NathanOliver
0
116
Member Avatar for umesh_1

did any of you guys help me out to know c programming easily.i feel it hard . so please help me out,,

Member Avatar for shayan_doust
0
173
Member Avatar for markdean1989

*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says …

Member Avatar for markdean1989
0
324
Member Avatar for Nghia_1

Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i dont have anything on hand . Can u share me some source code or …

Member Avatar for rubberman
0
158
Member Avatar for twtw

i got it success but error and i cant find it my code here: bool BinarySearchTree::search(int d) { tree_node *t = head; if(root==NULL) cout<<" The Tree is empty. Please insert a value "<<endl; while (t != NULL) { if (t->data == d) break; else if (d > t->data) t = …

Member Avatar for Taywin
0
170
Member Avatar for sahil_gupta

I know c++ basics only, how to start doing software development and game development in c++....????

Member Avatar for sneekula
0
159
Member Avatar for ramyking
Member Avatar for rafiakhan492
Member Avatar for avishekh.bharati

I am familiar with java. but now i want to learn either of these. so which would be better to learn??

Member Avatar for vegaseat
0
194
Member Avatar for it@61@sec

How can I find the width of a command line window from a GNU C++-program ? I'll use this information to display a progress bar when copying files, so I need to know the width to be able to display the progress bar correctly.

Member Avatar for L7Sqr
0
523
Member Avatar for Transcendent

What IDE do you use for C++ development and what is the best in your opinion? I'm using eclipse but sometimes I get errors when there shouldn't be errors. For example: I would have errors on eclipse but when i use code::block, everything works fine. I'm thinking of switching to …

Member Avatar for rubberman
0
243
Member Avatar for suliman.kh

hi guys Iwant a programm to creat tree and calculate the sum ant count it and max and min

Member Avatar for Ali_45
0
80
Member Avatar for tinased

hello. I have to use a function in my phonebook program to sort the names alphabitcally here is what i have done so far.but what's wrong with it? void showAllContacts() { char t[40]; list *head; if(head == NULL) { puts("There are no contacts to display!"); } else { printf("\nAll contacts:\n"); …

Member Avatar for Duoas
0
744
Member Avatar for nitin1

Please tell me the difference between these three. I know the basic meaning but don't know exact meaning of all of them. Please explain a very good example if possible. Thanks in advance.

Member Avatar for rubberman
0
255
Member Avatar for Mubeshier

This programe is made for biggners in c++ to made programe efficently and hide your prevate data form the user of your programe.This programe is made with the use of this pointer and also use the operator overloading. I will share this programme with others to understand it. //this programme …

Member Avatar for rubberman
0
292
Member Avatar for verse.ability

hi below is a switch case that is suppose to go to the next "hep" # and show a message... so if hep is 0 it shows one message, if hep is 1 it shows another, etc. I have it showing a message for 0, and 1, but it ALSO …

Member Avatar for verse.ability
0
374
Member Avatar for agrbinoo.albaker

Write a class that implements a vector of integers with the following template: Class IntVector{ private: // all member variables public: IntVector( int n); // create a vector with size n ~IntVector(); // releases any memory allocated by the vector Int getElement(int i); //returns the element i in the vector; …

Member Avatar for Moschops
0
132
Member Avatar for twtw

i cannot delete the lastest data i input, why. it show ".exe has stoppped working" void system1::deletenode(const string& id,const string& name) { string data; // User enters node to be deleted. nodetype * current = head; // Start at the head, and checks each node. nodetype * garbage = current; …

0
88
Member Avatar for EdJones

What's a good book to learn C if you already know Python and are comfortable with computer science terminology? I'd like a book that is downloadable as a .pdf free of charge but an html book viewable online free of charge would be fine. Also, is there an advantage to …

Member Avatar for tabanpanoam
0
278
Member Avatar for twtw

and i get error with error C2451: conditional expression of type 'std::basic_string<_Elem,_Traits,_Ax>' is illegal void system1::search() { cout<<"Enter ID to be Searched: "; int data_search; cin>>data_search; nodetype *current = head; while(current != NULL) { if(current->ID == data_search) { cout<<"\n----Linked List Linear Search Result----\n"; cout<<"ID: "<< current->ID <<endl; cout<<"Name: "<< current->NAME …

Member Avatar for Maritimo
0
222
Member Avatar for adnan121

Data structures to be used The program should use two distinct structure-types to store the students’ scores: the 1st type used for keeping scores of 4 quizzes while the 2nd type is used to keep the scores of 2 exams. A student can have either quizzes (if Engineering student) or …

Member Avatar for gusano79
0
188
Member Avatar for nitin1

I am very confused with static functions. Can I override them? If no, then why? I searched web a lot but i am still not clear. Please tell with one example if possible. Thanks a lot.

Member Avatar for Duoas
0
4K
Member Avatar for xela_1

I am new in c programing.In apps they usualy have images as background take for example a question and answer app will have a colourful backgroung.If i draw an image with corel draw how can i display as background in my c program.

Member Avatar for HiHe
0
227
Member Avatar for mR.faVOriTo

` #include<iostream.h> #include<conio.h> #include<string.h> typedef char string50[51]; typedef char string08[9]; typedef struct { string50 strName; string08 strID; float fQuiz[3]; float fMacProb[2]; float fFinalExam; float fRawScore; float fFinalGrade; float fAveQ, fAveMP; }STUDENT_RECORD; typedef STUDENT_RECORD CLASS_RECORD[5]; #define Name 1 #define ID 2 #define QUIZ1 3 #define QUIZ2 4 #define QUIZ3 5 #define …

Member Avatar for tinstaafl
0
2K
Member Avatar for nuller

and my code to write into a file is ofstream file; file.open("CustomerFile.txt",ios::app); file.write((char *) & customer,sizeof Customer); file.close(); file.open("AccountFile.txt",ios::app); file.write((char *)& account,sizeof Account); file.close(); can someone figure out my mistakes. Thanks in advance

Member Avatar for NathanOliver
0
85
Member Avatar for senergy

so I have this code to draw screen to client area every 100ms HDC hDC = GetDC(hWnd); SetStretchBltMode(hDC, HALFTONE); StretchBlt(hDC, 0, 0, screen.right/2, screen.bottom/2, GetDC(NULL), 0, 0, screen.right, screen.bottom, SRCCOPY); DeleteDC(hDC); however whenever it draws the program freezes for a while (like 10ms), it's not really noticeable unless you move …

Member Avatar for triumphost
0
621
Member Avatar for juliocesar.schincariolfilho

I'm trying to load a png to my button, but it's not showing the png in my button. I create my button with this function: HWND MyControls::CreateButton(LPCTSTR text, int x, int y, int w, int h, HMENU id, HWND hwnd, HINSTANCE hInst, bool png){ if (png){ return CreateWindow("BUTTON", text, BS_BITMAP …

Member Avatar for triumphost
0
2K
Member Avatar for omnizw.ani
Member Avatar for rubberman
0
78
Member Avatar for bc230201818

brushing Up the practise of class and its implimentation #include<iostream> #include<stdlib.h> #include<conio.h> #include<string> #include<Windows.h> using namespace std; class Student{ private: int ID; string IDch; string name; public: Student(){ int ID = 0; string name; string IDch; } int getID(){ return ID; } void setID(int ID){ this->ID = ID; ID = …

Member Avatar for bc230201818
0
601
Member Avatar for bc230201818

A simple function #include<iostream> #include<string> #include<conio.h> #include<stdlib.h> using namespace std; class name{ //******************************* private: string fName; string mName; string lName; int ppl; //******************************* public: int getPpl(){return ppl;} void setPpl(int ppl){this->ppl=ppl;} name(){fName;mName;lName;ppl=0;} string getfName(){ return fName;} string getmName(){ return mName;} string getlName(){ return lName;} void setfName (string Aname){this->fName=Aname;cout<<" X. Please Enter …

Member Avatar for bc230201818
0
201
Member Avatar for nuller

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Member Avatar for Duoas
0
497
Member Avatar for EddieC

Microsoft this week acquired [url=http://www.teamprise.com/]Teamprise[/url], a division of [url=http://www.sourcegear.com/]SourceGear[/url] that built tools to give developers access to Visual Studio 2008 Team Foundation Server from systems running Linux, Mac OS X and Unix.SourceGear's flagship [url=http://www.sourcegear.com/sos/]SourceOffSite[/url] provides remote access to Visual SouceSafe, Microsoft's version control system. Teamprise comes in [url=http://www.teamprise.com/products/download/]three forms[/url]. The …

Member Avatar for mike_2000_17
1
1K
Member Avatar for yaya1234

Hey, I used getline to read from file. When i have the char '#' I should ignore that line.. I want to put in the privat values of the class what I got from the file.. Here is what I did.. it works only for one line and then when …

Member Avatar for Suzie999
0
164
Member Avatar for Maryam_6
Member Avatar for mikeandike22

If you are a programmer than you probably know or at least know of C++ well now a company called Digital Mars is developing the D programming lanugage. [I] "D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with …

Member Avatar for The Old Man
1
476
Member Avatar for abrar7866

int firstarray[12][7] = { }; double firstClass(int airplane, int seats, double price) {cout<<setw(60)<<"---------------------... cout<<setw(60)<<"You are in **first class** booking screen\n"; cout<<setw(60)<<"----------------------... cout<<"\n"; cout<<"How many seats would you like to book for first class?"<<" ";cin>>seats; for(int row=0; row<2; row++) { for(int column=0;column<7;column++) { } } } The thing is, The first …

Member Avatar for Maritimo
0
335
Member Avatar for bc230201818

The set of codes have been taken from Paul programming Tutorials of Bianary search tree while listening to the tutorial and is not my effort . neither I have written this program. How ever converting the set of codes into animation has been done by me Enjoy watching and it …

0
104
Member Avatar for Maryam_6
Member Avatar for bc230201818

PLease write a better code which is rather advance form using #include<queue> && #include<list> #include<iostream> #include<conio.h> #include <iomanip.h> using namespace std; const int size=20; // Patient Class class Patient { int age; char name[30],phy; public: Patient() { age=0; strcpy(name,""); phy=NULL; } void SetName(char* P_name) { strcpy(name,P_name); } void SetAge(int P_age) …

Member Avatar for bc230201818
0
184
Member Avatar for ASHKAN_2

Hi i have this program that is about library management system in C++ language and i want to convert it to C but i dont know what to do. if someone could help me i would be thankful. #include<stdio.h> #include<conio.h> #include<iostream.h> #include<stdlib.h> #include<string.h> #define MAX 100 struct book{ char bookname[80]; …

Member Avatar for Frederick2
0
345
Member Avatar for nuller

i need to make a c++ console based program for a banking system using files. i implemented some code but having difficulty with withdrawing money from the account, checking balance, transferring funds and viewing transaction. For withdrawing funds i implemented the following code but it doesn't seem to work properly. …

Member Avatar for tinstaafl
0
278
Member Avatar for maria.gretta

create a c++ program that has 3 functions with return type void first function is called Sum the second function is called Information and the third is called Calculation. a) in the definition of Sum function, you should creat 5 random numbers and print their sum value. b) in the …

Member Avatar for bc230201818
0
211

The End.