51,593 Topics
![]() | |
I am quite familiar with C++ language...wanted to expand my knowledge...so just wanted to ask you gurus...what would be better to learn next...Managed C++ or C#...or something else more demanding in the market. ![]() | |
Hey can someone help me, my program has to do with dates, and asks the user to input a date on or after 1/1/1800, take that date and compare these statistics to my birthday(1/20/84) If the year is a leapyear how many days the month in the dates have one … | |
[COLOR=Red]Dear All, If i run the code below it will let me input a name. "John Doe" but it will only print out "John". I know how to create a char array[] and I also know how to use cin.getline but can the char array be used with the doctor … | |
HI I KNOW I HAVE ASKED SO MUCH BUT PLEASE DO NOT IGNORE ME I HAVE APART OF QUISTION THAT I COULDNOT COMPLETE IT HERE IS IT Then create an int specialization and in it add a function that returns the sum of all elements in the DoubleSubscriptedArray HERE IS … | |
the following code will print out all the names of patients I have in a linked list. I have given the user an option to choose which patient they would like to move in the linked list. i thought if I called S.insert(passed the new postition, and P (where P … | |
how do u append and subtract a number in an array. i have no clue. any links to a site about this wouls greatly appreciated | |
I have used arrays in the program; a[3] - now i want to change the program to dynamic array value If I enter more than allocated(3) characters in the input - it throws error and the program stops running error "Segmentation fault" (i am running c on unix) - i … | |
hi all, i am trying to generate a pattern [CODE] 1 121 12321 1234321 123454321 1234321 12321 121 1 [/CODE] but the code is not compiling i am getting the foolowing errors C:\Dev-Cpp\files\patterns.cpp:102: error: name lookup of `j' changed for new ISO `for' scoping C:\Dev-Cpp\files\patterns.cpp:98: error: using obsolete binding at … | |
Hi, Ihave got two data fiels. one for user and one for storing book details. I have written a code that can read from and file and write to a file successfully. Now i want to issue books to users. i dont know how to start. any ideas will be … | |
Hi guys,, i want to have C to my PC..i am using win XP. anyone can help me please | |
Dear all, when i run the prog below it works fine when I input an integer but if I enter a char by mistake the output to the screen goes mad. what i want to do is write a piece of code that 1) if char input then print to … | |
I'm getting errors on lines 8 & 43. I can't figure out what I'm doing wrong here (besides beating my head against the desk.) [code] #include <iostream> using namespace std; { try { if (num1 < 0) throw low; if (num2 < 0) throw low; if (num3 < 0) throw … | |
Dear all, I am in the process of writting a hospital/doctor prog. I have the majority working. BUT the program will only work ONCE. when I run the prog and input patient details (No.1), the details are inputed correctly. when I choose (No.5) I am able to correctly input the … | |
hi every please i need your expriment to help to complete this code my problem is with three functions i think so there is no errors the funcions are display account...>does not work just display name transection...>it count jyst one time standing order...>i do not know how to compare the … | |
I have written a program that performs a simple version of Run-Length coding compression on a file. I thought everything worked, but after a closer look at the output from the program, letters after a space are counted 1 too many times. I.e, if the letter 'p' appeared 6 times … | |
Hey guys, the following code is part of a program I am working on and as a newbie to c++ I have come across a problem. As you can see when the case is J the int J is increased by 1 but how do I go about doing this … | |
i copied the code as is discussed by my professor and written in my course book but i am not getting the correct output. my logic is very clear but not getting the right output, its a bunch of positive n negative values. pls check . the code is compiling … | |
Hola, Just like to say hi to everyone, i just joined the forums. Ok, I have been playing with C++ now for about 3 or 4 months and have now hit a brick wall and need your help. I am trying to write a program that will read in data … | |
I am writing my first C++ .NET program. For reasons I will not go into, I have to write a GUI in a dll called from an executable. All this is done without MFC. Right now the button bar classes and the menu classes are not loading. So here is … | |
What two parts combine to make up the serialization of application objects in Visual C++? Is it the DECLARE_SERIAL and IMPLEMENT_SERIAL macros? What are the (2) categories of ANDs and ORs and how can they be described? I am having trouble understanding these questions and need some clarification please. Thank … | |
I'm getting a parse error before '<' on line 26. What's going on that I don't seem to be seeing here? [code] #include <iostream> using std::cin; using std::cout; using std::endl; int main() { int num1, num2, num3, num4; int avg; cout << "Enter four numbers to be averaged." << endl; … | |
I am trying to build a constructor capable of using the current time from the time function as declared in the C++ standard library ( <ctime> ). This constructor should initialize an object of the Time class. Is what I have below going to work? I guess I need to … | |
I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile. I get the following error (same for all projects) … | |
Hey guys I'm playing with structs and trying to get one to include the other: [code] #include <iostream> #include <string> using namespace std; typedef struct data { string dat; } DATA; typedef struct name { string na; string age; NAME * DATA; }NAME; int main() { return 0; } [/code] … | |
If any body knows it, Pls. post me reply to this | |
I am trying to open a mp3 to read the ID3 tag information, when the mp3 is opened in an ASCII editor I can see all the information I want, including spaces. But... When I try running the following chunk of code on that same mp3, I get the same … | |
Plz answer to my C doubts:- 1) Why do prototypes of some predefined functions in ctype.h(ex- tolower(ch)) has 'int' as the data type for formal arguments? How will it matter if the formal arguments r of type 'char'? 2) Is there any command in DOS for viewing the non printable … | |
1) Plz explain these complex declarations(from K&R).-- [CODE] char(* (*f())[]) () // f : a function returning pointer to array[] of pointer to function returning char. char(* (*x[3])()) [5] // x: array[3] of pointer to function returning pointer to array[3] of char. [/CODE] The one line explanations which r given … | |
Hi All, Currently I am doing one project related to unicode file reading & writing. I got my result using CFile & using WcharToMultibyte,MultiByteToWchar conversion functions. But I have a doubt whether those functions work fine if the unichar is more than 2 bytes. Now I want to read the … | |
I just had a pretty basic question regarding graphics in C++ using the header graphics.h. How would you take a shape or just regular text and randomly move it around the screen like you would see in a screen saver? Just looping it to randomly display it in different areas … ![]() | |
Dear all, I have a prog working and printing to screen. But as my program has grown i.e class/method definitions I need to tidy up my main(); my problem is with printing my results to the screen. [COLOR=Red]///this will print out to screen perfectly. note i left out the class/method … | |
Hello, I just have a question about how to find a substring when one has only a string and coordinates for where the data will be? For instance, a string "why,hello", and data that is at the coordinates 4 to 8. strstr, I obviously cannot use directly, because I have … | |
I'll type the assignment I've been given. Then I'll tell you what my problem is, then I'll post my code. I'm sure the answer is probably so freaking stupid and would bite me if it had teeth. :mrgreen: A small airline has just purchased a computer for its new automated … | |
I have a problem i have a fully operational C++ code that works but when i convert it to ASM (assembly) code it doesnt work I dont know where I am going wrong but here are both codes.. [code] #include <iostream> using namespace std; int main() { int n, tmpA, … | |
Ref Polymorphism: I am trying to get the method `calculate_pay()` to work. As each type of doctor will have a differnt payrate I am trying to call the calculate_pay() but i am having difficulty. Should it be int doctor::calculate_pay() { return (doctor::get_Payrate()*hours); } will this line return each type of … | |
plz give me links or discuss on address calculation in 2d arrays. i have little knowledge of calculating the address. can any one give some formula or something coz my professor gave it but i wasnt able to follow . i remember he was using terms like rowmajor, column major, … | |
I am having trouble trying to implement my recursive method for inserting into a linked list. I made the recursive method private because it needs acces to the head pointer. Not sure where to go from here . Any help would be appreciated. Here is the code. The .h file: … | |
[COLOR=Navy][B]Just want to know the latest visual studio available right now. I'm currently using visual studio version 6.0. What I can see from MS website is version 2005 right now. Does that include the .NET thing? Cause I'm kinda curious what this .NET thing is all about..and recently there are … | |
Any help would be appreciated, this project is fustrating me. Has to do with PGM image files, but really the problem in my code (I would assume, lies within my pointers and dynamically allocating memory). Any help would be appreciated. Code: (main.cpp) [CODE]#include <cstdlib> #include <iostream> #include <string> using namespace … | |
dear all, when I try and compile the following code I am recieved a linker error. Can some one steer me in the right direction. Also are my use of the virtual statments correct? many thanks tim #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; class doctor{ protected: string … | |
hi... i really need help writing this program please i cant do it............ the instructions are.... a mail order house sells five diffrent products whose retail prices are shown in the followingtable: product# retail price: 178 $2.98 185 $4.59 199 $9.98 208 $4.19 288 $6.87 there are several permanent customers … | |
Hello folks, First timer here so bear with me. I'm trying to tokenize an array of strings. This program reads an array of strings, each string has a First and Last Name and some have Middle Names. The array of strings is then bubble sorted(not the most efficient but required) … | |
Hey guys and gals. I'm struggling yet again to get my file input working. I have a text file containing: John 19 smith 15 03 1986 Billy 15 Nomate 19 07 1990 ... etc I'm needing to get a line in at a time but also store the variables in … | |
Hi guys, Will you guys please suggest me some good books for TEXT compression with programming examples given in c or c++. Hope you guys will help me. :) prasath. | |
The code below compiles but produces the wrong output. The code is supposed to convert an infix string to postfix. the current output is only the arithmetic operator, unless there are parenthesis then it will only show the right parenthesis. I have been woking on this for hours and am … | |
I am getting these error can someone help? subscript requires array or pointer type -- point to lowest[x] = lowest; subscript requires array or pointer type -- average[x] = average; [code] #include <iostream> #include <iomanip> #include <string> using namespace std; void studentName(string name[4]); void getScores(double grades[4][5]); void findLowest(double grades[4][5], double … | |
[B][COLOR=Navy]This is an ongoing question going through my head.... I've been doing C++ programming for about 4 months now. Been using Deitel's C++ How to program book. Learned from the basics till data structures like link lists, queues, stacks, trees..all using templates, vectors, pointers. File processing (sequential and random). Well, … | |
hi every 1 please i need your help to complete my code cause i could not complete it it is for a bank wich . Design it so it can be used by the bank’s staff. It should enable the following: o Opening a new account for a customer o … | |
I cannot figure out these errors can someone please help [code]error C2065: 'stack' : undeclared identifier error C2228: left of '.isEmptyStack' must have class/struct/union type error C2228: left of '.pop' must have class/struct/union type error C2228: left of '.push' must have class/struct/union type error C2228: left of '.top' must have … ![]() |
The End.