49,761 Topics
| |
I was just trying to implement one of the design pattern Strategy of the gang of four . In my application one of my strategies has to operate on the data (and the data is huge , not 1 not 2 but huge) , now as the GoF says that … | |
So I'm trying to count the number of lines in a text file. I think I got it working, but it seems I can't do further correct processing on the text file, maybe because getline extracts the data? The operations I want to perform include inputting values read from the … | |
Can someone plus lead me in the right direction with this problem? 1.) Write a function to add an item to the list, given a name and a phone number as arguments. Don't forget to allocate memory for each of the data items in the node; return a success or … | |
| |
I m using Qt, I have multiple forms. The data from any form has to be sent using socket. also data coming over the socket has to be displayed in a main form. what could be my design so that i can share the socket connection among different forms also … | |
Hi , im working with ISA I/O card. previously i have only done communication through serial port and that was pretty simple using c++ as well as visual basic. now i hav no idea about how to communicate with this hardware throug ISA slot .for now i simply want to … | |
i posted a similar thread a few days ago re: this program, but i can't get it to work with functions so i'm giving up on them. i need to write a program that asks a user for a specific number of names, then asks for the names, (last first) … | |
Hey everyone, I'm new to C++ programming and have just started the semester and having a bit of trouble with my second homework assignment. Here's the assignment: Write a program that accepts a 7-9 digit integer andechoes the number with commas between every three digits from the right. Here's what … | |
How do you introduce mouse in c++ program? | |
hi can anyone suggest a creative project which can be done in a span of 3-4 months using c++?? | |
I would enjoy some help in directing my search for C++ code in a more specific area. I only have two years of college level C++ programing expirence under my belt so i would love to keep most of the coding simple. I want to create a function that moves … | |
hi, can anyone give me some tips to make pascal triangle program. thanks in advance:) | |
Hi I have a piece of code. It's print for me the numbers I enterd but in reverse order that I would like to. How may I change that? thx [CODE] #include<iostream> #include<conio.h> using namespace std; struct Node { int data; Node* link; }; class Q { public: Q(); void … | |
Hi I try to fill linked list with names. I have one error could anyone fix it. [CODE] #include<iostream> #include<conio.h> #define MaxSize 30 using namespace std; struct Node { char name[MaxSize]; Node* link; }; class Q { public: void get_input(char array[]); void print_input(); private: Node* head; void display(Node* ); }; … | |
hi, can you help with the code to delete a structure object in c++. Thanks | |
hi I have the following problem... I have a program (c++ code) which updates some logs ...(i am using linux as the operating system) I was wondering that is there a way by which i can execute this code/program after every two (or what ever time period expires )by creatiing … | |
Does anybody know if there's a way to interact with a printer that prints onto CD's? I've googled it and haven't found anything promising. The app that I'm writing is going to need it. It seem that only the manufacture of the printer can interface with it. Any ideas? | |
Hi Why is that wrong [CODE=cplusplus] #include<iostream> #include<conio.h> using namespace std; struct Node { char your_name; Node *link; }; typedef Node* NodePtr; class Q { public: Q(); void get_input( ); void display_input( ); private: NodePtr head; }; int main() { Q name; char your_name; cout<<"What is your name: "; name.get_input( … | |
hai this is the most important and use full material on C++ and data structures. it is usefull for bot Engineering and Graduate students. Links: <url snipped> Download it as a free Enjoy | |
i actually feel like a n00b asking this, but i'm a little of what you might call rusted in this stuff, since i hadn't need to handle files for a year now... i searched for some guide, but i only found out how to [B]open[/B] a file... like this:[code=c]ofstream *pfile; … | |
HI I am trying to combine(I think that is the word) a node and a class together.Could anybvody try to find the error I have thx [CODE] #include<iostream> #include<conio.h> using namespace std; struct Node { int data; Node* link; }; typedef Node* NodePtr; class Q { public: void insert_data(int data); … | |
i get 3 build errors when i use the numbers, the simple payroll program aint so simple for me im using java tools in x-code [code=cplusplus] #include <iostream> using namespace std; main() { int employeeid; int hoursworked; float hourlyrate, grosspay, taxamount, netpay; float const TAXRATE = 0.10; cout << "ENTER … | |
[CODE] struct NodeType { char name[MaxNameSize]; NodeType* next; // A pointer to the next person in line }; void GetInLine(char new_person[]); int main(void) { char X[MaxNameSize]; Q q1; q1.GetInLine("Joe"); void Q::GetInLine(char new_person[]) // This function causes a person // to get in line in the appropria spot. { NodeType* temp; … | |
Ok so far I got this, it takes a string of characters and prints out their binary representations. I am semi new to C++ and I cant for the life of me figure out how to get the hexidecimal and octal representations of the input. Here is the code so … | |
Hello there, I have here a program that reads a txt file taking each word in three columns separated by a comma and storing it to a vector. It has a filter that whenever it sees a comma, it seperates the word from each other. My problem is, whenever I … | |
Hi to all, I hope uyou can help with the following situation i have: I have to write a function that receives a parameter, that is unknow until runtime, meaning one of the parameters could be: CString, int, double, bool or something else The function receive additional parameters that are … | |
Hello everybody, I wrote a program that can save some data into file and then read it from there,the weird thing is that it loads correctly from the file only when it's in debbug mode,and doesn't do it at all when it in release mode. Here are the code fragment: … | |
Write a C++ program for the classic hangman game - guess the word without getting more than 6 letters wrong. The user is informed of the number of letters in the word to be guessed. A wrong guess of the letter would cause additional part of the hangman figure to … | |
Hi, i 've recently done a university project requiring me to construct a data structure{ a heap}.... Now that i 've finished the programming task , i am thinking how can i measure the programm's performance..... I will populate my data structure with 2 million random elements, and i will … | |
Hello, I'm new to the site here. I say this because there seems to be a fair bit of etiquette here that I could step on so if I do, that's why. Anyhow, I had to take C for my software certificate and since I wanted to take C++ and … |
The End.