49,761 Topics

Member Avatar for
Member Avatar for raniajay

Hi, I am just a starter in C++,i am having some doubts in solveing some C++ programing problems... I will be thankful if u help me solving it.. Queries r: write prog 2 find the square root of a number using repeated iteration technique. WAP to accept n +ve integer …

Member Avatar for arashyjrt
0
134
Member Avatar for Andreas5

Hello, i got in trouble once again, this time in excersise 14-4 in Accelerated C++. When i compile i get an error message that you probably know. [QUOTE]fatal error LNK1169: one or more multiply defined symbols found[/QUOTE] Can anyone see what i am missing here? Edit: This is all in …

Member Avatar for Andreas5
0
111
Member Avatar for yatender123

I have made a library management software in c++ i need some color codes and graphics to make it attractive can anyone help me

Member Avatar for Ancient Dragon
-1
32
Member Avatar for enkidu75

The point is to read a file and then display the information from a 2D array. Then find the highest value in each column and divide all the numbers in each column by the high value for that column. Then display the quotients (which I put back into the original …

Member Avatar for StuXYZ
0
152
Member Avatar for benshrupendra

Hello All Friends, I found an error on above mention code (Found error on red/Bold code). [CODE] namespace wyUpdate { using namespace System; using namespace System::Collections::Generic; using namespace System::IO; using namespace System::Runtime::InteropServices; using namespace System::Threading; using namespace Microsoft::Win32::SafeHandles; public ref class PipeServer { public: [StructLayoutAttribute(LayoutKind::Sequential)] value class SECURITY_DESCRIPTOR { public: …

Member Avatar for jonsca
0
142
Member Avatar for abhijeet kamble

hey, iam working on c++ and i need help . will u plz tel me how do i insert time to my system.... i tried with time.h and bios.h but it doesent work .. also how do i execute a batch file of .exe from c++.

Member Avatar for Ancient Dragon
0
160
Member Avatar for Jacobah

Hi I try to change images and location. first I define CStatic array (m_x) when i try to show him: m_x[0].SetBitmap(hBitmap); I have error: "expression must have class type" (on m_x[0]) what is my mistake???? [CODE] CStatic *m_x[2]; // = {&m_1, &m_2}; m_x[0]= &m_1; //Row 1 CString ReqBMP(Letter[m_A1]); hBitmap = …

Member Avatar for Jacobah
0
83
Member Avatar for Yaserk88

Hey does anyone know if there is an error function in the math library of C++? I think there is so, but I just can't figure out how to use it.

Member Avatar for tesuji
0
623
Member Avatar for help1

#include <stdio.h> #include <conio.h> int HM=67.50, MS=87.00, Ms=92.75 ,a,b,c; float oHM, oMS, oMs, T; void main() { clrscr; oHM=HM*a; oMS=MS*b; oMs=Ms*c; T= oHM+oMS+oMs; printf("Hi! May I take your Order?");; printf("Here's our Menu"); printf("Happy Meal for 67.50, McSavers1 for 87.00, McSavers2 for 92.75"); printf("How many Happy Meal do you want?"); scanf("%d, …

Member Avatar for sfuo
0
108
Member Avatar for kerp

Hi! I've recently started to make some programs with the windows API using C++. The problem I'm having right now is that I've created an application, and now I want to share it with the world (or at least some selected few). I've coded the program on my laptop win …

Member Avatar for kerp
0
419
Member Avatar for neil_mahaseth

There are N coins kept on the table, numbered from 0 to N - 1. Initally, each coin is kept tails up. You have to perform two types of operations : 1) Flip all coins numbered between A and B. This is represented by the command "0 A B" 2) …

Member Avatar for neil_mahaseth
0
141
Member Avatar for Dendei

hey guys, emm can someone explain fast for me how to get to the programming state where u get a window with some options on the side and can then switch to code i cant remeber how to get there :) hope u understand thx for answers :)

Member Avatar for n.sehrawqat1987
0
91
Member Avatar for jan1024188

I have a problem....I wrote program which makes computer beep, but there is no beep when executing a program. I included [B]windows.h[/B] header, defined [B]speed[/B] and wrote following line [CODE]Beep(2750, speed);[/CODE] Why there is no beep?

Member Avatar for +_+man
0
388
Member Avatar for +_+man

how to make a generator which generates codes for eg;-123456?? how to make this i need serious help thanks in advance for everyone who helped me.

Member Avatar for +_+man
-1
73
Member Avatar for localp

I have an opensouce project, that is been used c++ as its language. Now i need to use visual studio 2008, as the IDE in making some changes in the source. How do i import this project to my VS2008 environment? is there any converter i can use that could …

Member Avatar for localp
0
62
Member Avatar for ivareske

Hi, I am writing a program which is using taglib to read audio tags. When calling the taglib dll, sometimes a std::cerr message is generated. I want to catch these messages and save them in a log. I have tried std::ofstream ostr("log.txt"); //or std::ostringstream ostr; std::streambuf * old_buffer = std::cerr.rdbuf(); …

Member Avatar for vijayan121
0
164
Member Avatar for Razorfox
Member Avatar for YasukiMai

Hey I am very new to programming. I am taking my first C++ class. I am a little embarrassed to ask a simple question but I am stuck. I want to code a pattern that can vary by size etc. It looks like ***** 5**** 55*** 555** 5555* or ******** …

Member Avatar for finito
0
87
Member Avatar for coolblazer

Im having problem with saving register staff detail. After typing all the detail, and i choose to view the staff detail - it say "Data for Staff Number that have been entered is Empty." here's my full coding: admin.h [code]#pragma once #ifndef ADMIN_H #define ADMIN_H #include<iostream> #include<string> #include "Staff.h" using …

Member Avatar for coolblazer
0
171
Member Avatar for crapgarden

[COLOR="Red"]3.3 - Objects vs Types: Strings, char, int.[/COLOR] Strings used to be an array of char in C-style coding. Now they're objects in C++. Does this mean that int and char are not objects?

Member Avatar for crapgarden
0
227
Member Avatar for crapgarden

[COLOR="Red"]3.2 - Defining and Differentiating Computation. [] vs ()[/COLOR] I'm trying to get a solid fix on how math computations work in C++ and how to declare their order, in particular with respect to ( ) operators. this adds to an array: [CODE] inventory[numItems++] = "armor".[/CODE] why don't I need …

Member Avatar for crapgarden
0
127
Member Avatar for dusktreader

I notice that there are many, many threads where posters receive few if any comments. When I open these threads, it is usually obvious right away why no one has bothered to reply. The problems with these posts vary from deliberate solicitation for homework solutions to poorly composed questions. I …

Member Avatar for dusktreader
7
284
Member Avatar for emps

Ok, I have a header file that each of my source files includes: #ifndef MAIN_H #define MAIN_H #include <string> #include <vector> #include <sys/socket.h> using namespace std; extern string CONFIG_FILE; struct _msg { string prefix; string command; vector<string> params; }; struct _channel { bool bLocalOnly; string name; vector<string> users; string mode; …

Member Avatar for dusktreader
0
159
Member Avatar for smoothe19

Why is my destructor not working properly when ran with my whole code it keeps displaying 01010101010101 etc here is my code [CODE]LinkedList::~LinkedList() { NodePointer ptr = first; while(ptr != 0){ first = ptr->next; delete ptr; ptr = first; } if (first == 0) cout << "List destroyed\n"; else cout …

Member Avatar for smoothe19
0
166
Member Avatar for avarionist

I'm working on a simple function to read in from a file called save.txt and i need to read about 7 or 8 characters in. 4 characters are numbers that represent North south east and west respectively the other 4 characters are delimiters(i don't know why i put them in …

Member Avatar for avarionist
0
152
Member Avatar for gear26926

Hi, The above code generates a window and it has a few buttons on it.That is working fine. But however the part of the code where class "FileDialog" is defined and the function "myButton5_Click" is used, it does not seem to work. The output should be such that - When …

Member Avatar for gear26926
0
205
Member Avatar for amiref

Hello Everybody I Have A Question . Suppose That We Have This Class : ///////////////////////////////////////////////////////////////////////////// class StringClass { public: ... void someProcessing( ); ... StringClass& operator=(const StringClass& rtSide); ... private: char *a;//Dynamic array for characters in the string int capacity;//size of dynamic array a int length;//Number of characters in a …

Member Avatar for Aranarth
0
73
Member Avatar for finalheavenx

please help me how to get the highest and lowest number when I input 10 numbers.. the first run is: Enter First Number: Enter Second Number: Enter Third Number: Enter Fourth Number: Enter Fifth Number: Enter Sixth Number: Enter Seventh Number: Enter Eighth Number: Enter Ninth Number: Enter Tenth Number: …

Member Avatar for dusktreader
-1
3K
Member Avatar for larkson

I'm writing an assessment tool that cross checks the name entered by a person with a list of names of known people blacklisted by me. So far I can only figure out how to compare a users entry with one name, effectively limiting my blacklist to one name. I'm new …

Member Avatar for mrnutty
0
181
Member Avatar for cmutzel02

I am writing a program to read ain a file. s axis -1.50000E+01 to -1.49000E+01 t axis -1.50000E+01 to -1.49000E+01 4.16402E-06 0.0077 repeat for new numbers (these values don't match those taken in below, I just pulled them out of a random part of the file) the format doesn't really …

Member Avatar for cmutzel02
0
98

The End.