49,761 Topics

Member Avatar for
Member Avatar for veronicak5678

I am trying to write a "censor" program. here are the instructions: Write a program that reads a file of text and replaces each `target' word with its first letter followed by a string of asterisks that indicate its length. Have it read the list of target words from a …

Member Avatar for veronicak5678
0
183
Member Avatar for Yellowdog428

Wow, I am having huge problems passing values between functions and wrapping my head around pointers. For some reason when I tried to return values from functions they would not pass and when I tried putting pointers in the place, passing them kept giving me compiler errors. Now I have …

Member Avatar for Yellowdog428
0
96
Member Avatar for inamabilis

Hi, First off apologies if this is in the wrong forum - moderators feel free to move it if it is, or ask me to repost somewhere else. Now, my actual question is as follows. If I understand correctly by initiating a hook using SetWindowsHookEx then my hook will be …

Member Avatar for inamabilis
0
76
Member Avatar for WonderWomen204

I have to do an assignment for class. Here is what the assignment is: Start with the following program code. Write the function called "increment" which takes one integer parameter and returns that value plus one. [code] #include #include using namespace std; // YOUR FUNCTION GOES HERE! int main() { …

Member Avatar for Ancient Dragon
0
119
Member Avatar for infernojmd

my out put file comes out like 0105000011500970099001120011600108001 and so on for a while. any one help me figure out wat is wrong with my code. oh yea and what is in the input file is it-is a-CaPital Mistake tO-theorize Before-one has DatA123. [CODE=cplusplus] #include <iostream> #include <iomanip> #include <fstream> …

Member Avatar for Ancient Dragon
0
121
Member Avatar for cquestion

Hello: I'm almost killing myself to figure out the problem with the attached code. It seems that passing a text array to a function is impossible. Anyone is so kind to help me, please.

Member Avatar for Ancient Dragon
0
88
Member Avatar for starkman

Hey All! I am trying to implement a clutch like system in a little project I'm creating, Basically i am extracting information from a .csv file of the location of a users gaze whilst studying a standard desktop... I have the methods, MoveClickGaze, and MoveMouse, however i want to implement …

Member Avatar for starkman
0
103
Member Avatar for M&M

I keen to write a program that reads a text from a file. Then i have to take each word from the text and change the word. If the word begins with a vowel, add the string "yay" at the end of the word. If the word does not begin …

Member Avatar for Ancient Dragon
0
95
Member Avatar for DJ-KhaosTheory

Hello all, I have been working with the playsound() function in Visual Studio 2005, and find myself coming up short in getting it to work. I have recieved many compile errors, and never successfully have gotten it to function. I am using VC++ console application, WITHOUT a precompiled header. My …

Member Avatar for DJ-KhaosTheory
0
4K
Member Avatar for UnnamedPlayer

Hello I'm a newbie at c++ and I'm doing a basic course in school at the moment. I have an assigment which unfortunately is impossible to complete with my knowledge (that is how it feels like at the moment anyway :'( ) . I'm not looking for someone to do …

Member Avatar for vmanes
0
93
Member Avatar for mostafa mahmoud

Hi, I am a computer engineering Student having knowledge of basics in C++. I have to make a C++ project (pharmacy and its inventory). Please guide me how to make such an online project in C++. What all tools i need to use and how much time they will take. …

Member Avatar for Narue
0
100
Member Avatar for jasonlys

Hi I'm new to C++ and would really appreciate if someone could help me. How do you exactly put the friend function into this program? Not that I haven't tried. I really have no idea where to put and what to change. My program is grouped into three different parts. …

Member Avatar for Narue
0
86
Member Avatar for knewc

Hello mates! I'm having quite a bit of trouble reversing a set of integers using recursion. The user enters a positive integer. The program then takes that integer, and lists 0,1,2...Number originally entered. The function SumTo lists zero to N, however I now need to reverse that list. Like this... …

Member Avatar for ivailosp
0
247
Member Avatar for knewc

My Prof gave me this to work with.... the following function accepts an integer greater than 0, as an argument and it returns the sum of the squares of the numbers 1 through N. For example: squares(3) must compute the value 1^2 + 2^2 + 3^2, that is, 14. I …

Member Avatar for ivailosp
0
93
Member Avatar for mukulbudania

I am able to make a mouse... the show function and hide functions are working.. but i am not able to implement the left_button down properly... not even the right button down function.... is it like the left button down n click r equivalent.... can neone help me out with …

Member Avatar for Black Magic
0
112
Member Avatar for CE Student

This program I have to solve it before next week;so plezzzzz plezzzz help me And I will be very happy if I solve it :) :) ITCS102 Assignment #4(chapter 12) Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: …

Member Avatar for ivailosp
0
216
Member Avatar for johnnygaddar

Hi, I need to do this problem for an assignment. We have not focused very much on this topc and that would be great if someone could help me get started. I am not asking for a complete solution or anything, just to head me in the right direction. The …

Member Avatar for johnnygaddar
0
175
Member Avatar for poojaa

hi, i am developing a dll for comparison of 2 text documents in php through vc++, i find the techniques of comparison from diff eventhough while executing my code it shows an error ie, unable to open config.h. Can anyone help with it.

Member Avatar for Ancient Dragon
0
38
Member Avatar for LindaWiklund

Has anyone used GMarkupParser to parse a simple xml-file? If so, how do I use g_markup_parse_context_new () and g_markup_parse_context_parse ()? The Glib manual is completely incomprehensabel. To clearify, what I am looking for is a bit of code so I can understand how to parse an xml-file. Can anyone help …

0
75
Member Avatar for Adrian99420

Hi, I am using visual C++ 2005 express edition. I created a window form application with several combobox. The combobox contain few default items (pictures for example). Now I wish to create a file browser which allow user to choose picture from others directory and added it into the combobox. …

Member Avatar for mitrmkar
0
173
Member Avatar for DOrmisher

I'm currently trying to draw a bitmap to screen after a mouse click. This is the draw sprite function: [ICODE]void C_AlphaBlend::DrawSprite( int X, int Y, Bitmap* BitmapToDraw ) { int Width=BitmapToDraw->Width; int Height=BitmapToDraw->Height; for (int i=0; i<Width; i++) { for (int j=0; j<Height; j++) { Color colour = BitmapToDraw->GetPixel(i, j); …

0
56
Member Avatar for nurulshidanoni

I have this data..but something error..my data is like this... Exam TExam 1 25 2 20 3 46 4 56 5 12 but it only appear like this 1: -853617 [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for …

Member Avatar for nurulshidanoni
0
111
Member Avatar for nurulshidanoni

If I want to sort in descending order for exams.at (i).total.at(j) like this.. the output 1 34 2 56 3 21 and I want to cout the output 2 56 1 34 3 21 Is it must to use bubble sort or radix sort? [code=c++] #include <iostream> // std::cout #include …

Member Avatar for mitrmkar
0
608
Member Avatar for quecoder

Hi , I'm new to programming, I wanted to know if knowledge of C++ is enough to build a program that makes modifications in the system , like [URL="http://www.tune-up.com/"]Tuneup Utilites[/URL] program that repair registry errors, or check for hard disk failures , format it and check the mbr ...or it …

Member Avatar for quecoder
0
120
Member Avatar for h0neydip

[code] #include <iostream> using namespace std; const int queue_size = 1000; class queue { private: // array containing queue elements char data [queue_size]; char *front, // index of the front of the queue // indexes 1 before actual front element *rear; // index of the rear element in the queue …

Member Avatar for dougy83
0
114
Member Avatar for lizhiyuan

dear all friends i am a newcomer, i have a basic questions, i already read one book of openGL, couldn't understand well. my question is how to create a cube and map a texture to it, anyone give me some explanation of work principle to handle this? thanks a lot. …

Member Avatar for lizhiyuan
0
86
Member Avatar for Jennifer84

I wonder, I have a CheckedListBox and on the properties you can choose "MultiColumn" and set this to True or False. What I wonder is if it is true that CheckedListBox can have for example 5 columns because when I set this to true you canĀ“t see that any columns …

Member Avatar for Jennifer84
0
221
Member Avatar for DJEEPER

well, my assignment is to create a program that will compute a square root of a number without using the sqrt() function in the cmath lib. here is the direct assignment guideline. [url]http://community.tncc.edu/faculty/lewis/csc201/pdf/lab4b.pdf[/url] and my program is about 95% written out (minus the comments)... but it keeps getting stuck in …

Member Avatar for vmanes
0
212
Member Avatar for TheBeast32

Hi, i need to make a [B]very[/B] large char array (char array[10000000]). How would I do this without getting a stack overflow error?

Member Avatar for bugmenot
0
69
Member Avatar for rje7

im building a telephone directory. and the code is given below. i am using file system to store the record which i get from the user. and then i should be able to do searching, deleting, sorting and other default telephone dir functions. so far i have been able to …

Member Avatar for Salem
0
85

The End.