49,755 Topics

Member Avatar for
Member Avatar for woe joy

I wish to parse an xml file but after a lot of reading, am confused by the various compilers available for for it. What would be the best way to parse an XML file and what sort of compiler/parser would you use for it?

Member Avatar for Ancient Dragon
0
30
Member Avatar for RoselineM

can anyone help me with this output: ^^^^^#^^^^^ ^^^^###^^^^ ^^^#####^^^ ^^#######^^ ^#########^ ########### i have done the following so far & am struggling to continue: #include <iostream> using namespace std; //Function draw shape void displayRow(int sizeP) { for(int i = 1; sizeP - i + 1; i++) cout << '^'; …

Member Avatar for DangerDuke
0
123
Member Avatar for tomtetlaw

idk why i get this error i just do here is the code i have: [code=c++] #include "includes.h" int main() { } [/code] here is the error: c:\documents and settings\tom\my documents\visual studio 2008\projects\c++ tutorial\c++ tutorial\main.cpp(3) : error C2143: syntax error : missing ';' before 'int' any ideas?

Member Avatar for tomtetlaw
0
149
Member Avatar for jschri4

string rating(bool ozone, bool no2, bool so2) { string result; int count = 0; if(ozone == true) { count++; } if(no2 == true) count++; if(so2 == true) count++; if(count == 3) result = "Gold Star"; if(count == 2) result = "Silver Star"; if(count == 1) result = "Ok"; if(count == …

Member Avatar for Zhujy
0
78
Member Avatar for Barefootsanders

HI, I'm trying to write an application in C++ that has two things - a TCP server (listen server) as well as a TCP client where it can send to other TCP servers. I currently have both parts set up simultaneously. I did this by calling fork() and having the …

Member Avatar for Duoas
0
127
Member Avatar for jschri4

Im suppose to read in a file (which it isn't doing) and get numbers form them to see if they pass or fail certain specifications. Can someone help? the exact specifications are: The company you work for, Acme Environmental Monitoring, runs sensors to test air quality at different locations. These …

Member Avatar for SeeTheLite
0
164
Member Avatar for jspeakers

Hi, I am not that great with C++ but I am trying to write code that will be able to import 2 wave files I have - the first file is my sine wave sweep file the second is my impulse response of the room. Once imported I wish to …

Member Avatar for nucleon
0
388
Member Avatar for Danny_501

Hi all, i asked this question a few days ago bit its still unsolved. I'm reading a text file of strings, line by line, and storing them into an array. when i try and print them using this function: [CODE=cpp]template < typename T > void printArray(T * const array, int …

Member Avatar for Danny_501
0
96
Member Avatar for rEhSi_123

Hello everybody! I am creating a Book library system in C++. I created a login class where the user types in a username and password and if successful is able to log into the menu system. Now, everything goes well unless and untill the user types in the right credentials …

Member Avatar for SeeTheLite
0
5K
Member Avatar for shea279

Does anyone know how to use let the user define a custom hotkey with the control IDC_HOTKEY, then register it on a system wide scale, so it sends a message back to the application when its pressed? And I have googled, without much luck.

Member Avatar for shea279
0
98
Member Avatar for Zcool31
Member Avatar for iTsweetie

Hi all, I've been instructed to write a program that inputs a dollar amount to be printed on a check, and then prints the amount in a check-protected format with leading asterisks of necessary. Nine spaces are available fore printing an amount (max of $99,999.99). The program looks like this: …

Member Avatar for iTsweetie
0
134
Member Avatar for blahblah619

Help please! How do I change this so I input the letters instead of numbers? I'm confused. I want to make it so I can enter "R" instead of "0" etc. Also, I don't know where to put an if-break for the user to enter "Q" or "q"... [code] #include …

Member Avatar for SeeTheLite
0
3K
Member Avatar for Falkoner1

Okay, I'm trying to have a linked list autonomously delete itself, however, the destructor function I am using doesn't seem to work, it just keeps constantly looping, until the program just ends itself. Here's the function: [CODE]node::~node() { if(this->next != NULL){delete this->next;} delete this; }[/CODE] Basically, this should run through …

Member Avatar for Falkoner1
0
159
Member Avatar for mimis

Can i make a function with a vector<int> parameter instead of an int array?

Member Avatar for NicAx64
0
89
Member Avatar for Nemoticchigga

I have a struct. I want to declare a pointer to that struct. Now I want 10 of those structs. How is this declared? I have tried (call the struct foo for example): foo* test[10]; when I make a call to test[0]->whatever or test[5]->whatever it seems to always write to …

Member Avatar for MrSpigot
0
111
Member Avatar for daviddoria

This simple example fills a vector with numbers 0-9. Then I use find() to find where the 7 is. Then I saw online you can get the index by simply subtracting V.begin() from the iterator that find() returns. Has - been overloaded for iterators to do some magic and return …

Member Avatar for StuXYZ
0
91
Member Avatar for Barefootsanders

Hi, I'm trying to code a program that involves a double linked list. I have the linked list working but the information in the link list need to be shared between 2 different classes. Is it possible to pass a linked list as reference and manipulate it within the different …

Member Avatar for SeeTheLite
0
112
Member Avatar for snap!

ok so i am going to be taking a c++ course next semester and was wanted to get better knowledge so i have a proble that i was givin that am having some trouble, just some pointers on where/how to start will be helpful... Im not sure how to set …

Member Avatar for rahul8590
0
91
Member Avatar for serkan sendur

hi guys, i downloaded eMbedded Visual C++ 4.0 and when i run setup.exe it asks for a serial number, where can i find it? thanks

Member Avatar for jbennet
0
2K
Member Avatar for Talguy

For a project I am working on we're using libserial to communicate with out hardware. the problem with libserial is that when you call read() it returns an unsigned char and readline() returns a string. We're encoding our collected data from four sensors into 32 bit unsigned integer if I …

Member Avatar for Talguy
0
102
Member Avatar for songweaver

Hey guys I am having a problem knowing where to start on writing this Leap Year program that wants a day number output. Here is the scenario: Write a function [I]dayNumber[/I] that returns the day number (1 to 366) in a year for a date that is provided as input …

Member Avatar for songweaver
0
617
Member Avatar for daviddoria

I was using a library recently and I was getting a "undefined reference" linker error when I tried to call a template function with a type that they did not plan on me using. I asked on the mailing list and they said to call [code] VSL_VECTOR_IO_INSTANTIATE(vnl_matrix_fixed<double,3,3>); [/code] I guess …

0
48
Member Avatar for sgw

A question/curiosity: When using the time function, why must the argument be 0, as "time(0)"? I tried other numbers and it gave error.

Member Avatar for ArkM
0
23K
Member Avatar for guest7

Hi, I am comparing two file to find if they have common strings. My program is not doing that and I cannot figure out the reason. Any help is appreciated. Following is my code: [CODE]int main() { FILE *inf1 = fopen("file1.txt","r"); FILE *inf2 = fopen("file2.txt","r"); int numcols = 11; char …

Member Avatar for MrSpigot
0
91
Member Avatar for zaohin

i've got this last year question from my senior. i've tried to solve it on my own but i think it's not suit with level now. so, anyone please could help me to write the codes as my final exam is coming soon. kindly post the solution through this site …

Member Avatar for ithelp
0
101
Member Avatar for ganmo

hello, I've been pondering on a thing here for while now. The thing is that I want to read in several of integers, which I've fixed. And the problem now is that I want to output the integers I have input. The thing is that I only want to output …

Member Avatar for ganmo
0
123
Member Avatar for rouba

hi i really need help i am really lost in this program if any one can help me with it plz contact me on my email [I] <<mail id snipped>>[/I] (using c++ program) 1. Write a computer program that implements the recursive merge sort. The input to the program must …

Member Avatar for ithelp
0
163
Member Avatar for massivefermion

Hi I just finished reading C++ the complete reference by herb schildt (almost a quarter ago)so i feel i can program in c++ but i don't know what to write.could you give me some problems that their answers involve a lot of c++ features? thanks a lot

Member Avatar for ithelp
0
141
Member Avatar for myboo11009

I am trying to write a math tutoring program for students. A very basic outlay of ceretain components. This program should have the user select addition, subtraction, multiplication or division. user should also have the capeability to exit the program and quit it. I tried writing some code for this, …

Member Avatar for ithelp
0
1K

The End.