49,757 Topics

Member Avatar for
Member Avatar for CHETNA_1

Write a C++ program to print out the value of sin(x) or cos(x) depending on a user input (1 = sin, 2 = cos)and continue the expansion until successive terms differ from each other by less than 0.0001 (in terms of absolute value). Report how many terms are necessary.

Member Avatar for rubberman
0
44
Member Avatar for nhrnjic6

In function : node* insert_in_tree(int number,node* p_tree) { if(p_tree == 0) { node* newNode = new node; newNode->num = number; newNode->p_left = 0; newNode->p_right = 0; return newNode; } if(number < p_tree->num) { p_tree->p_left = insert_in_tree(number,p_tree->p_left); } else { p_tree->p_right = insert_in_tree(number,p_tree->p_right); } return p_tree; // refering to this } …

Member Avatar for rubberman
0
183
Member Avatar for mustafa.bahaa

hay guys iam new to c++ programming studing for c++.com iam getting to a point that i wirte a program and it doesn't run and i can't find anything realted to it , to know where is the problem so that's the program // cin with strings #include <iostream> #include …

Member Avatar for mustafa.bahaa
0
218
Member Avatar for arjun.godara.549

hi, i am begginer, want some help in following questions. 1.write a program for to store five values in array and print them using loop. 2.write a program for to store and display the 2D array. 3. print diagonal element of matrix.

Member Avatar for Ancient Dragon
0
80
Member Avatar for LAIME

Please help me to answer the following problems, I am new with the c++ code, Write a c++ program that may be use to compute the area of square (area=side*side) or a triangle (area=1/2*base*height). After prompting the user to type the first character of the figure name (S or T) …

Member Avatar for Learner010
0
143
Member Avatar for ganesh.naphade

I am new to socket programming.I am trying to send datagrams containing image data(jpg) from one host to another continuously.I want to use C++.I have not came across detailed steps on how to achieve this for images anywhere.can somebody explain or link me to such tutorials?

Member Avatar for ddanbe
0
237
Member Avatar for nhrnjic6

I get the algorithm and how binary trees should work but this I don't get : look at the basic binary tree insert function : node* insert_in_tree(int number,node* p_tree) { if(p_tree == 0) { node* newNode = new node; node->num = number; node->p_left = 0; node->p_right = 0; return newNode; …

Member Avatar for nhrnjic6
0
166
Member Avatar for anthony_5

I am using poco library to send a email first I installed the libraries on my ubuntu sudo apt-get install libpoco-dev code using namespace Poco::Net; int main (int argc, char **argv) { try { MailMessage msg; msg.addRecipient (MailRecipient (MailRecipient::PRIMARY_RECIPIENT, "john@gmail.com", "John")); msg.setSender ("Anthony Smiths <anthonysmiths5456@gmail.com>"); msg.setSubject ("sending a email using …

Member Avatar for Moschops
0
2K
Member Avatar for Roily Lucky

I have finished writting the code for my media player but it cannot display the current video on the imagebox dedicated to it. Can any one help?

Member Avatar for Moschops
0
63
Member Avatar for Aleks134

I would like to search a file for whether certain words are present and extract the parts of the sentence that contain the words; I would like to find words that are a particular part of speech, and extract the part of the sentence from the word before the previously …

Member Avatar for Moschops
0
154
Member Avatar for Elias_3

I want the text in a textbox "txtConvertedInches" to be selected when i press the radio button "rbFromInches". private: System::Void rbFromInches_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { bConvertingToInches = !rbFromInches->Checked; ToggleControls(); txtConvertedInches->SelectAll(); //I thought this would do it, but nothing happens }

Member Avatar for Elias_3
0
204
Member Avatar for ryan.jay.ong
Member Avatar for dagi125125125

Write a float function rectangle() that computes and returns the area of a rectangle using its two float formal parameters h and w, where h is the height and w is the width of the rectangle

Member Avatar for userasad
1
281
Member Avatar for nitish.mohiputlall

I am having 4 errors with the main program and i dn't know how to slove it anyone to help me how to solve the errors and how the codes was suppose to be correctly typed: 1.error: 'salaried' was not declared in this scope (line 5) 2.error: expected primary expression …

Member Avatar for Moschops
0
2K
Member Avatar for Sanjeetjmp
Member Avatar for tessa.burkhalterblackmon

I need help fixing my code. I'm getting the following errors: 107 C:\Dev-Cpp\TicketFineCalculator.cpp no matching function for call to `TicketFineCalculator::getFine(int&)' and note C:\Dev-Cpp\TicketFineCalculator.cpp:20 candidates are: int TicketFineCalculator::getFine(int, int, int, int) Here is my code: #include <iostream> //allows program to perform input and ouput #include <string> //allows string using namespace std; …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for javed.iqbal.3979

Hi all, I am working on Bank Management System,,i wanna connect my programm to MySql Can anyone refer me Book(s)/links where i can learn so...i have know how of Mysql already and worked on it

Member Avatar for Ancient Dragon
0
161
Member Avatar for yoyo.albeatiy

Hi every one i have a problem with this program the conslo window disappear automatically without waiting , Im using return 0; function but it does not work

Member Avatar for saharsweeto
0
173
Member Avatar for asmaa_4

I Want to know that what the difference between int and longint is Although they have the same siza (4 bytes)

Member Avatar for yasir prince
0
108
Member Avatar for sireiz

We want to make a software with our neighborhood map and roads with directions. What would be the best way to do it? Its a university project. Platform would be Android and windows.

Member Avatar for rubberman
0
186
Member Avatar for matt55284

Just started learning c++ and ive got a bit stuck :L Im making a console application that injects a file into a process. The file name and process name are both specified at the start of the code using char FileToInject[] = "File_Name.xxx"; char ProcessName[] = "Process_Name.exe"; The console works …

Member Avatar for rubberman
0
351
Member Avatar for nhrnjic6

func should take array and find a index of a target number : int find_index(int num,int Niz[],int index){ if(num == Niz[index]) return index; else if(num != Niz[index]){ find_index(num,Niz,index++); } else {return -1;} } I quess I know am accesing unacesable memory, just cant figure out where

Member Avatar for Ancient Dragon
0
122
Member Avatar for cambalinho

i'm learning, by work, how use win32 forms applications. but i'm geting a problem: the label(STATIC class) is give me flickers :( i had tryied use the WS_EX_COMPOSITED but give me problems with WM_MOUSEMOVE message :( someone tell me something about double-buffering, but i only knows use it for images …

0
94
Member Avatar for sardarnouman.tariq
Member Avatar for Ancient Dragon
0
72
Member Avatar for babyluxe03

hello! im trying to make my own stack program in c++. but my code doesnt seem to work. I got 6 errors, been trying to figure out what are those and how to solve it but theres no progress. Can somebody help me with my project. I would greatly appreciate …

Member Avatar for Moschops
0
311
Member Avatar for hariza

Hi guys, If i have a file like the one below what would be the best/easiest way to sort the words in alphabetical order. thanks. with an equal mix of biosolids to make the compost Sawdust is on their greens Compost applied properly will enhance growth of grass flowers shrubs …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for hail2dthief

I'm using visual c++ compiler and I want to change the text color in my c++ dos program. What choices do I have if i don't wanna use system function (example: system("color 0a"))?

Member Avatar for Ancient Dragon
0
23K
Member Avatar for amcath

Hi Could you please tell me how to solve this simple problem in c++. #include<iostream.h> #include<conio.h> void main() { clrscr(); int a=5,b=3; int y=a-b++ * --b; /* manually I get the answer as 6 , but the compiler gives as -4 . how?*/ cout<<y; getch(); }

Member Avatar for deceptikon
0
246
Member Avatar for hatre
Member Avatar for samtechae

hae all, how can one make a program that will count number of items in an array and also insert item at certain positons in an array.Thanks in advance...

Member Avatar for anku gupta
0
127

The End.