51,593 Topics

Member Avatar for
Member Avatar for BLKelsey

Hi fellas, This week in class (2nd week), we are learning about classes. Our professor has asked us just to complete one simple class with separate files. My problem is when I go to compile, I get errors stating my variables aren't "declared in this scope." As far as I …

Member Avatar for Agni
0
4K
Member Avatar for n30h4x

So my goal for a project of mine, is to output the values of variables into their respected locations in PDF file. Where would I need to look to get started on this? Are there any library's anyone would recommend?

Member Avatar for n30h4x
0
127
Member Avatar for abcdabid

[CODE]<Security> - <User> <Username>jon</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> - <User> <Username>bob</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> </Security>[/CODE] I have xml file and i want to remove specific element having username jon [CODE] foreach (XmlNode parentNode in parentNodes) { for (int i = 0; i <= parentNode.ChildNodes.Count - 1; i++) { XmlNode childNode = …

Member Avatar for papanyquiL
0
91
Member Avatar for Kesarion

How would I draw something on the screen ? not the console window but the entire screen, preferably with the console minimised. Also, would it show up on a printscreen ? It better not :P What I want to do is create something like a layer on top of the …

Member Avatar for Kesarion
0
125
Member Avatar for bsse007

-[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, …

Member Avatar for NP-complete
0
186
Member Avatar for tkud

Hey everyone,is there a way I can have images in my WIN32 dialogs? Thanks

0
55
Member Avatar for c++_fem

Does anyone know how to list all variations of vector elements in C++ ? Is there a function like for permutations (next_permutation) ? tnx

Member Avatar for c++_fem
0
2K
Member Avatar for eng hassan

[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] = '@'; …

Member Avatar for eng hassan
0
134
Member Avatar for jp071

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 …

Member Avatar for nbaztec
0
160
Member Avatar for ashar5

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 …

0
33
Member Avatar for frag

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 …

Member Avatar for JohnSmith12
0
133
Member Avatar for Brandon515

[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; …

Member Avatar for jonsca
0
148
Member Avatar for shayankhan

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 …

Member Avatar for shayankhan
0
95
Member Avatar for lcfc12

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 …

Member Avatar for daviddoria
0
103
Member Avatar for yongj

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 …

Member Avatar for Agni
0
98
Member Avatar for Chris11246

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 …

Member Avatar for daviddoria
0
106
Member Avatar for Eng.muslima

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 …

Member Avatar for Eng.muslima
0
127
Member Avatar for cgage22

[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.

Member Avatar for NathanOliver
0
122
Member Avatar for adonay alex

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 …

Member Avatar for NathanOliver
-4
163
Member Avatar for ashar5

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 …

Member Avatar for Ancient Dragon
0
130
Member Avatar for JKARIUKI

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.

Member Avatar for Ancient Dragon
0
174
Member Avatar for Abiha

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(); …

Member Avatar for NP-complete
-2
1K
Member Avatar for lul
Member Avatar for bobsta

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] …

Member Avatar for mrnutty
0
145
Member Avatar for iamthwee

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" << …

Member Avatar for Radical Edward
0
1K
Member Avatar for bladethebric

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

Member Avatar for bladethebric
0
112
Member Avatar for NH1

I have an MDIParent form with a button in it. I have it so that when i click the button it gets disabled. What i need help on is that, I need to know how to re-enable the button after i exit out of the form that opens when i …

Member Avatar for NH1
0
14K
Member Avatar for Mike182

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 …

Member Avatar for Jessica Garcia
0
124
Member Avatar for RayvenHawk

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. …

Member Avatar for RayvenHawk
0
201
Member Avatar for BobbieJean

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]// …

Member Avatar for jonsca
0
138
Member Avatar for straight_rydr

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 …

Member Avatar for Crak
0
130
Member Avatar for Leppie

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 …

Member Avatar for Leppie
0
2K
Member Avatar for blumarker

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 …

0
21
Member Avatar for genux

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 ?

Member Avatar for genux
0
72
Member Avatar for Edvin76

The Xml: Micfosoft(TM)'s modified Books.xml: The price attribute of the last book item was modified by me, now it appears two times, once as attribute of book and second time as a separate item inside the book item. [code=xml]<?xml version='1.0'?> <!-- This file represents a fragment of a book store …

Member Avatar for Edvin76
0
169
Member Avatar for LevyDee

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 …

0
57
Member Avatar for JaimeSharp

Now I HAve Written The following Programs [CODE] # include <iostream> # include <string> # define MAXSIZE = 300 using namespace std; bool findTitlePrice(string allTitles[300], double allPrices [300],int totalRec,string title,double price); string allTitles[300] = { "Book 1", "Book 2"}; double allPrices[300] = { 78.5, 66. }; int main () { …

Member Avatar for JaimeSharp
0
263
Member Avatar for bigcheesy

Hello, I am having some trouble figuring out an assignment I was given in class. I am not looking for any code, but need a better explanation that what the teacher has given. Basically the program will calculate the number of days between any two days from 1/1/1900 through 12/31/2099, …

Member Avatar for JeyHey
0
7K
Member Avatar for aryansmit3754

could somebody tell wats wrong with this #define FOR(x,n)for(typeof(x);x<n;x++)

Member Avatar for mrnutty
0
205
Member Avatar for abhi74k

[CODE=c++] class A { int num; public: A() {} A(int _num) : num(_num) {} A operator + (const A & ob) { return (num+ ob.num); } }; int main() { A ob1(1); A ob2(2); A ob3(3); A ob4=ob1+ob2+ob3; } My doubt is in ob1+ob2+ob3 . First ob1+ob2 is evaluated and …

Member Avatar for Aranarth
0
150
Member Avatar for new2programming

I am making a jump and run game- i want my sprites to collect items that are worth points. I want these items to be randomly generated on my tile map. Does anyone know how i can do this? I am using Visual C++ with SDL

Member Avatar for Aranarth
0
95
Member Avatar for kalrajhi

Hey guys, I am having a problem with this program. It's actually part of an example from Michael Dawson's [I]Beginning c++ Game Programming[/I] This program pretty much randomized a number between 1 and 100 and has the user input his/her guess. The user can deduce what the number is each …

Member Avatar for kalrajhi
0
253
Member Avatar for iamcreasy

I am new new in OOP stuff.I have read the Herbert Schildt's C++ reference.But it just gave me the idea, about how it work.Not how to make it work. I am read few chapters from "Object-Oriented Programming in C++ by Robert Lafore"(old edition featuring UML 1, i guess).But it was …

Member Avatar for avarionist
0
171
Member Avatar for Excizted

Hello, I have a derived class, that I'm trying to delete. This causes a segmentation error, though. I'm fully aware of the virtual destructor thang, but I'm using it all the way around, and still this issue occurs. I'll post my headers only, please tell if more is required. DataStream.h …

Member Avatar for Excizted
0
3K
Member Avatar for vilas_tadoori

Hi All, I have written reversible link list and pasting the code as below in c++. It works fine, please let me know if there are anything more that is required to make this more robust. This is on a single link list. [CODE] [COLOR="Green"] #include "stdafx.h" #include <iostream> using …

Member Avatar for vilas_tadoori
0
155
Member Avatar for Babatuda

Hello I am having some problem, can any body give me a helping hand each time I compile I get this error massage, I dont know where I made the mistake help please I new to programming[code]This is my Main File include libraries #include <iostream> //Call C++ normal imput and …

Member Avatar for avarionist
0
453
Member Avatar for r1409

hi all i have an assignment in which i have to use object-oriented programming to read from an input file(say: input.txt), use prim's algorithm and calculate the weight of a minimun spanning tree and then save the output to a file(output.txt). the problem with my code is that the program …

Member Avatar for daviddoria
0
639
Member Avatar for Jennifer84

Hello I am trying to compile my project in VC++ Express Edition and get the error below. The project did compile fine before I reinstalled XP windows. But now when I have installed everything again, I receive this error. I dont understand what this can mean ? When clicking the …

Member Avatar for Jennifer84
0
285
Member Avatar for rootchord

Been working on this for hours now. but most of it has been trying to fix these two errors. I've been googling my heart out and keep getting cryptic answers about the [B]const[/B]. Really need help. it's supposed to take in names of students and their scores, sort them, then …

Member Avatar for rootchord
0
640
Member Avatar for leesho

i have this code which input 3 numbers into ascending order. i know make it 10 i just change the array size but then it is only ascending the numbers that were inputing that are under 10. how can i change it so it's any number. [code]#include <iostream> #include <conio.h> …

Member Avatar for mrnutty
0
272

The End.