49,761 Topics
| |
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 … | |
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 … | |
I have made a library management software in c++ i need some color codes and graphics to make it attractive can anyone help me | |
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 … | |
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: … | |
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++. | |
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 = … | |
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. | |
#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, … | |
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 … | |
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) … | |
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 :) | |
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? | |
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. | |
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 … | |
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(); … | |
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 ******** … | |
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 … | |
[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? | |
[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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … |
The End.