49,761 Topics
| |
how can i find the first word in my sentence having 'w' character. This character can be present anywhere in my word. Lets take an example of sentence "Hi, what are you doing here abxwxyz? So the result should be what. | |
Hi all i need some help in my merge sorting [code] class Database { protected: struct data { string pName; string pCat; int pBarcode; double pPrice; string pMan; int pStock; int pSold; data *next; };//struture of product } [/code] [code] void Database::topX(int number,data output[]){ data *cur=_head; data* *sorted=new data*[_n];// new … | |
Hi all, and thanks in advance for your help. I have a program which stores some large arrays of ints and reads and writes from text files. main() takes commands with cin and then runs various functions. One of these, generateSentence(), takes three ints and a char* as arguments, but … | |
double mean (int scores[], int numberOfStudents); double standardDeviation (int scores[], int numberOfStudents); perform the following task by using above function: 1.find maximum 2.find 2nd maximum 3.find minimum 4.find mean 5.find standard deviation 6.display scores 7.read a new set of scores 8.exit program | |
I just need some clarification on what my homework assignment is telling me to do. Ok, this is the homework question: Write a program that reads a key pressed on the keyboard and displays its code on the screen. Use the program to determine the code for the Enter Key. … | |
Ok, so I wrote this generic/simple program for a class but am having some trouble with the pauses in the program. I want to use [COLOR="Green"]cin.get();[/COLOR] or [COLOR="Green"]cin.ignore();[/COLOR] to pause my program so I can avoid [COLOR="Green"]system("PAUSE")[/COLOR](word on the street is:shit sucks) and make it look cleaner. The thing is, … | |
hi , is there a soft that can convert a visual c++ project to c++ builder ??? I've tried a tool that comes with c++ builder but with no result . thanks | |
I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library … | |
Hey guys, I'm kinda new at C++ and need help writing a program that finds email addresses in text files and stores them in an array. The email addresses are then filtered to make sure there are no duplicates. They are then copied to an output file. The program should … | |
If a 3D box(a bounding box) knows it's position, it's width, it's height and it's depth, what would be the most efficient(can run in real time) way of detecting if a 3D co-ordinate is inside that box? I already have something in place to check for it but I am … | |
Hello everyone I have been trying to learn the greater mysteries of linked lists and have come across an error that is inexplicable to me at my current level of understanding. I have written a program that attempts to form a linked list to store student information in the form … | |
I have looked everywhere but i have not been able to find any thing about comparing two strings alphabetically. I tried comparing the characters of each string but i do not know what comparing characters actually does. i am assuming it just compares the ascii codes of each character? [CODE] … | |
hello everyone, have a c++ test coming up and i am completing some practice problems, wondering if could look over what have so far what i got is in red. if see errors plse help me out | |
Hey, sorry if this question seems basic however I am relatively new to C++ and have done some searching around but to no avail. I then came across this community and thought I would try it out :) Basically, using Visual C++ 2008, I have a custom data structure, lets … | |
So in my last problem, someone said "Use a pointer" (or something like that). When I googled it. It had to do with memory blocks (at least, I think). So what is it? And, oh yeah, can you make it as simple as possible. I have tried seeing what it … | |
make something where the console retrieves a file (preferably txt) and read each line separately? example: [CODE]fsocksthingy("data.txt"); cout << data.txt;[/CODE] while data.txt is: [CODE]name1 http://downloadlink.com name2 http://downlink2.com name3 http://downlink3.com[/CODE] and the result would be: [CODE]name1 name2 name3 Download which version > (input here) You chose name2! (opens http link to … | |
hey mates We're writing a class "intArray_t" in c++ and we're supposed to forbid operations like: [CODE] intArray_t* t = new intArray_t(); intArray_t* t2 = new intArray_t(); //some code here, inserts and so on t = t2; [/CODE] and [CODE] intArray_t* t = new intArray_t(); //some code here, inserts and … | |
Hi! I need help! I need to create a program in c++ that ask a question, there is a multiple choice, display if your answer is wrong or correct. Like the gameshow "Who wants to be a millionaire" and included "LIFELINE" I tried and it runs but when I chose … | |
I need help with the following course assignment. Operator overloading shall be implemented in an existing composite Class. The overloaded operator shall be used to compare objects (strings) in a bubble sort sequence. It is not allowed to use Friend or Inheritance. My problem is if operator overloading only should … | |
(Before you read on I want to let you guys know I have knowledge of c++) I was just wondering if there's a way to program a usb driver? I know it's a lot of work but that's what makes programming fun right!! here's my problem I wanted to make … | |
Here's what I'm trying to do: Write a working C++ program that implements the following requirements: - Develop a CALCULATOR in C++ - Implement at least six distinct arithmetic functions - Allow for at least two functions to be combined - Validate user input: do not allow invalid input - … | |
Hello everyone, Been using daniweb to solve most of my programming problems as a guest, and figured it was time to create an account. The problem I'm having, is that I have an assignment that requires use of the ncurses library. I have a partial program that I have to … | |
Hello I would like to program my own 2d game into C++. I know its hard I know it needs a lot of time but I strongly believe the only way to learn c++ is to program so if you won't swim deeper you will never learn to swim. I … | |
Goal: Get USB drive letter upon insertion. Done so far: Detection of drive. ------------------------------------------------------------- Im using the method of RegisterDeviceNotification() [CODE]WM_DEVICECHANGE // Received message | DBT_DEVICEARRIVAL // Received Message | DEV_BROADCAST_HDR // Pointer from lParam | PDEV_BROADCAST_VOLUME //Pointer from DEV_BROADCAST_HDR Pointer [/CODE] When getting the index drive letter from dbcv_unitmask. … | |
Hi guys, I am trying to make a chat bot on Omegle, (sort of line SmarterChild on MSN, but for Omegle). Anyway, my problem is when I send my HTTP post, I am not receiving any data. I call recv, but it does not send me any data. When I … | |
| Hello, I am encountering a problem when I try to connect to my webcam using CreateFile. Using the SetupApi, I found the interface path of my webcam: \\?\usb#vid_03f0&pid_5d11&mi_00#6&aad3e6&0&0000#{6bdd1fc6-810f-11d0-bec7-08002be2092f} According to the MSDN documentation I supposed that when I use this interface path in CreateFile, I will be able to read … |
i'm not able to run my c++ program in turbo c.................... | |
Hi everyone. I am trying to write a program that controls access to my hard drive.i.e when this program is running, the specified directory can not be accessed. But first, s there any way one can create a folder using c++? | |
I am a newbie Well i was just reading a book named c++ primer and got bored so i just wanted to create a c++ consol game just for some fun I have created this thing any more idea and some repair in code? [CODE] void welcome() { cout<<"Welcome to … | |
Hey everyone, i've been trying to send some words seperated by spaces to a server and only the first word arrives. The connection stuff is all fine but i have absolutely no idea whatsoever how to make it send more than one word at once. This is what i'm talking … |
The End.