49,761 Topics

Member Avatar for
Member Avatar for gunjan_29

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.

Member Avatar for WaltP
0
117
Member Avatar for tnecniv

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 …

Member Avatar for tnecniv
0
102
Member Avatar for lukebradford

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 …

Member Avatar for lukebradford
0
280
Member Avatar for hurricane123

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

Member Avatar for hurricane123
0
121
Member Avatar for gomezfx

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

Member Avatar for jwenting
0
153
Member Avatar for WhyteRyce

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

Member Avatar for WhyteRyce
0
300
Member Avatar for moonwalk

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

Member Avatar for Ancient Dragon
0
153
Member Avatar for rahul8590

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 …

Member Avatar for mrnutty
0
151
Member Avatar for som3aman

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 …

Member Avatar for VernonDozier
0
166
Member Avatar for tomtetlaw

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 …

Member Avatar for mrnutty
0
85
Member Avatar for ace8957

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 …

Member Avatar for ace8957
0
172
Member Avatar for deraj8

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

0
240
Member Avatar for lgonzo

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

Member Avatar for tomtetlaw
0
79
Member Avatar for aatwo

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 …

Member Avatar for aatwo
0
137
Member Avatar for CreativeCoding

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 …

Member Avatar for Excizted
0
131
Member Avatar for CreativeCoding

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 …

Member Avatar for Lerner
0
114
Member Avatar for dorkwad

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 …

Member Avatar for dorkwad
0
196
Member Avatar for aianne

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 …

Member Avatar for tetron
0
238
Member Avatar for Sune

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 …

Member Avatar for tetron
0
217
Member Avatar for SCoder1

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

Member Avatar for Salem
0
81
Member Avatar for P_funk22

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

Member Avatar for jonsca
0
143
Member Avatar for nmcentire

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 …

Member Avatar for jonsca
0
135
Member Avatar for D4n1sD

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 …

Member Avatar for CodyOebel
0
123
Member Avatar for VilePlecenta

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

Member Avatar for VilePlecenta
0
204
Member Avatar for scriptkiddy

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 …

Member Avatar for scriptkiddy
0
270
Member Avatar for Thew

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 …

0
114
Member Avatar for alokannamalai
Member Avatar for scriptkiddy
-1
49
Member Avatar for tkud

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

Member Avatar for tetron
0
127
Member Avatar for foodman123321

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 …

Member Avatar for strmstn
0
116
Member Avatar for replic

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 …

Member Avatar for Salem
0
732

The End.