49,761 Topics
| |
-[B]Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design a class bookType that defines the book as an ADT. 1. Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, … | |
Hey everyone,is there a way I can have images in my WIN32 dialogs? Thanks | |
Does anyone know how to list all variations of vector elements in C++ ? Is there a function like for permutations (next_permutation) ? tnx | |
[CODE]// Project !!!.cpp : Defines the entry point for the console application. // #include<windows.h> #include <iostream> #include <conio.h> using namespace std; class Predator {private: int x; int y; char z; char board[20][20]; int count1; int count2; public: Predator(){ for (int j=0; j<20; j++) { board[0][j] = '@'; board[19][j] = '@'; … | |
Hello, I would like to display result in form window. The result is changes every 5 seconds. The form is only close when i stop program. I am using console application in visual c++ 2008. Anybody could help me, how can i display data in form view when i use … | |
Hi, I am using ReadDirectoryChangesW to get file added/modified/deleted notifications. In the dwNotifyFilter argument, I gave the following filters. FILE_NOTIFY_CHANGE_CREATION|FILE_NOTIFY_CHANGE_LAST_WRITE|FILE_NOTIFY_CHANGE_SIZE|FILE_NOTIFY_CHANGE_ATTRIBUTES|FILE_NOTIFY_CHANGE_DIR_NAME|FILE_NOTIFY_CHANGE_FILE_NAME Normally the process has been waited in GetQueuedCompletionStatus function and return notifications whenever a file is added/modified/deleted. The issue I am facing is, when a file is added/modified one time … | |
Hello all. I'm currently studying computer science, and I need some insight concerning data structures. i'm asked to create the necessary data structure to hold the population and saving factor of all cities. CITY: Population: Saving factor: Nicosia 200 0.4 Limassol 120 0.6 Larnaka 65 0.7 Paphos 30 0.75 Paralimni … | |
[CODE]#include <fstream> #include <string> using namespace std; typedef struct blook { char* name; int hour; char* day; char* month; char* year; char* alive; char* sick; char* pregnant; char* adult; char* elderly; char* child; char* water; char* meat; char* wood; char* seeds; char* vegtables; }info; info load(string name1) { info black; … | |
Hello guys ... can anyone help me or guide me if i am thinking wrong, can we copy character array into character array. like char names[250]; cin>>names; names=names+names; like we do with int a; cin>>a; a=a+a; can we do this with character array i want to store 7 names into … | |
I need to get this program to display the most expensive value and the most taxed value in text form from the names stored in the array. The following code works out everything apart from displaying the most expensive and most taxed items on the screen. This needs to be … | |
So there's a handsheet that my professor gave me as a guideline to follow. It gives us the prototype of the functions and that's IT. However, when I put in the prototype and fill in the body, an error comes up in regards to a conversion error. Any help? Here's … | |
| I am a little new to coding, I just finished CS 1 in college, and I want to learn something that will get me more interested in doing my own projects so that I will be interested in teaching myself more. Right now I want to learn some simple image … |
I have a program code deal with a drug data in pharmacy ...the program is running without syntax error but I have a problem in search code ..it apply search on the first record only but didn't apply on other records..I have tomorrow an exam ..please help me..I'm sorry for … | |
[CODE]string name; char gender; string address; cout << "Enter the name : "; getline(cin,name); cout << "Enter the gender (M/F) : "; cin >> gender; cout << "Enter the address : "; getline(cin,address);[/CODE] I don't understand why this skips the input action for the address. | |
i have already read the (read me before posting),and have come to ask an assignment which was given to me yesterday.so, i really need your help on getting the answer to a question that says WRITE A C++ PROGRAM THAT CALCULATES THE GRADE OF A STUDENT AFTER ASKING THE GIVEN … | |
Hi, Assume, I have a following table whose schema is, create table testing (test1 integer not null, test2 integer not null, test3 integer not null, test4 integer not null); And assume the following details are inserted: insert into testing values (1,1,0,0); insert into testing values (1,1,1,0); insert into testing values … | |
Am tryin to connect my c++ program of Visual Studio 2008 to a database bt hav problems. In VB.net 2008 I include a module (procedure). How do I? Someone help pliz. | |
i didn't understand ur answer plz reply in more modified way and also tell wats the prob in a=pop(); & in b=pop(); and also tell the output of a+b*c/d^e rply as quick as possible thankyou [code]#include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<ctype.h> #include<math.h> #define MAX 20 char stack[MAX]; int top=-1; char pop(); … | |
Hi, I am still experimenting with STL trying to weigh up the pros and cons. I wish to define nested/embedded classes i.e. [CODE]typedef std::vector vector <class B> bVecArray; typedef std::vector vector<std::string> sVecArray; class A{ bVecArray bObjArray; std::srting curLine // current line in dataFile ... }; class B{ sVecArray header; };[/CODE] … | |
| Hi, I trying to get the LAST modified text file in a folder, but unsure how to do it. I am using the following code:- [url]http://www.adrianxw.dk/SoftwareSite/FindFirstFile/findfirstfile3.html[/url] [code]#include <windows.h> #include <iostream> using namespace std; int main() { SYSTEMTIME SysTime; HANDLE hFind; WIN32_FIND_DATA FindData; cout << "A very basic FindFirst/Next demo.\n" << … |
what comand is used for printing a text ?? OpenGL programing .. with GL in front .. IF ( something is set ) bla bla bla bla bla bla print text ( what is the comand ) else same here ?? GL_printtext .. or something ?? | |
Im trying to finish this calculator program, its for a writing rpg on a forum, for a post you get line count creativity rating and difficulty rating using these 3 things you use a special formula to find out the final power level, this code compiles ok, but when it … | |
I have an assignment that has me reading in a file and creating a token for each string and special characters in it (which isn't the part I need help with). I currently have part of the program working 98% but am getting an error when I execute the program. … | |
Hello, I can't seem to get my program to build correctly. It seems I've finally gotten close because now it will build with no errors but with 2 warnings. I'm not sure what else to change in my code to fix it. Could anyone please help? Here's my code: [CODE]// … | |
I need the user to input a book title then price, once that is done when the user searches for the book it displays the title and price that the user has made. Right now its showing weird numbers when displaying the price for book. [CODE]#include<iostream> #include <iomanip> using namespace … | |
Trying to create 20 files using ofstream. I could name each individual file on creation, file01.txt, file02.txt ect but wondered if it was possible to use a string variable in place of say the file name (file01.txt) and then use a loop to create the other files. Does the name … | |
Hello, I'm having trouble with buttons with Visual Styles enabled on a black background color. Like so: [url]http://i48.tinypic.com/28lf6zn.png[/url] On an effort to fix this I attributed WS_EX_TRANSPARENT style to the buttons, which only made these bits of white border-like aspects appear occasionally(they show up at random times and for random … | |
hi all, I kinder got bored with software development for a bit and was not until I noticed CS106A(Java based) and the CS106B (C++) which has really re-light my developer bug as such.. was wondering what other courses can people recommend to keep that bug keep on going ? | |
Hi, I'm trying to iterate through an stl list object list(customer being my struct that holds the name, age and gender variables[customerList being my list]), but I'm getting an error. [code] void store::listCustomers() { vector<customer>::iterator it; for(it = customerList.begin(); it != customerList.end(); it++) { cout << it->name << endl; cout … |
The End.