49,761 Topics
| |
Hi Guyz, I had to create a program w/c objective is to omit a certain tag in xml file. the only thing in my mind is to search and get the length of the tag. my problem is what if that tag had a certain sub fields: [QUOTE] <team> <cell1 … | |
Hi This is how my input file looks like and i while loop is sorta messed up, i'm a newbie, can someone give me a lil help? Input file: Iron Man 90 80 70 -1 Captain American 90 80 70 60 -1 Spider Man -90 Phil O'Sophy 72 81 63 … | |
Okay, i am very new to Visual C++ and i understand the design and stuff but what i don't get is where do you put the actual c++ code to tell each thing what to do? And by the way does anybody know a good visual c++ tutorial?? | |
I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the … | |
i received some help but when i implimented it into the program it came up with an error. if anyone could help me fix this problem i will greatly appreciate it. here is the program. it is a guessing game. the error message says: error C2064: term does not evaluate … | |
Create array for which each object can hold integers in the range 0-100. You input a few numbers say 1 3 5 they are displayed as 0 1 0 1 0 1 0 0 0 0 up to 100.I can do a simple loop of zeros up to 100 but … | |
| A friend of mine wanted to see if I could figure this out.. and it's driving me crazy!! Maybe I'm just over thinking it? Anyways, can anyone figure this out? Design an algorithm to sort a deck of cards with the restriction that the cards must be kept stacked in … |
Hi all I started learning C# but I became annoyed at the need for the .NET enviroment on every machine the program was run on, so I switched to C++ and started learning that. I am hearing talk about C++ dying out and C# is better and is where all … | |
hi every body... i have problem in my project,and i need help to solve it the problem is :: i have string variable and i want to store two values in it one value is string that insert it by the user and another value is integer that is generated … | |
I have int x I would like to fill it with a randomly generated number between lets say 6 and 10 I know that x = 1 + rand() % maxRange; will limit the maximum range but i would also like to limit the minimum range. How do i put … | |
Hello, I am new to C++. I have read the warnings about homework and do TRY.... I am an older student and have been trying to get this project going to no avail.... My first part of this code is attempting to create a grid of 16 playing cards laid … | |
i need to write a C++ program to determine the real root of Ln X^2= 0.7 (A) using three iteration of the bisection method with initial guess of Xl=0.5 and Xu=2 (B)using three iteration of the false-position method with intial guess of Xl=0.5 and Xu=2. ANY KIND OF HELP WILL … | |
I'm trying to create a piece of C++ code which will only allow a user to enter odd numbers. If an even number is entered, the program must tell the user to enter only an odd number. Im comfortable with the whole output bit in the 2nd line above, but … | |
Hi Experts, Did anyone use eclipse and cdt in solaris, I am getting eclipse version 2.1* for solaris however cdt is compatible with 3.* versions, can anyone let me know where can I get latest version for eclipse for solaris ? I am unable to find later versions in eclipse.org … | |
Hello, there. I just would like to ask any other possible ways to read wchar_t data in a file? I tried to use ifstream but it seems that the '>>' operator cannot be used to unsigned short variables with the likes of wchar_t. Thanks. :) | |
hello im a new here and also i am a new student of C++ i have to make these programes in next 1 hrs can u help me in making these 3 programes 1: take input from user,check whether the given no. is even or not. 2:take input from user, … | |
I coded a program its for temperature conversion its still not developed yet and I'm having a problem. Here's the code: [CODE]/* Software Name = Temperature Converter Calculator... Made by Manzoor Ahmed.*/ // Program that helps converting Temperature degrees. // Formulas obtained from wikipedia.org. #include <cstdlib> #include <cctype> #include <iostream> … | |
Hello, could anyone please help me with this. I have a hardware connected to my PC via serial port. This hardware is sending me data (in HEX format). Now i would like this data save to a .txt file. Please help me. Here is my code so far...if anybody is … | |
So I am learning arrays, and i was given a piece of code in my book here which basically finds the average, min, and max value of a set of numbers, but the thing i don't understand is, when you are finding out the min and the max why you … | |
hi; this for circular link list type , its to check whether a word is palindrom or not . it dosen't work ! can you check it this the insert function : [CODE]void InsertLast(const elemtype &Item) { Node <elemtype>*temp; temp=new Node<elemtype>; if ( temp==NULL) { cout<<"Full memory"<<endl; return; } temp … | |
:!: I keep getting a pop up that says: Microsoft Visual C++ Runtime Library Buffer overrun detected Program C:/Program Files/Yahoo/browser/ybrowser .exe A buffer overun has been detected which has corrupted the programs internal state. Program cannot safely cont. execution and must terminate. Then the browser shuts down. I spoke to … | |
Hello, I am new to this board and C++, so I do not even know what encase code in [] means, but I will try. I have an assignment I have been working on for a week. I have consulted my book and the web, but I have been unable … | |
i am making a menu driven program on linked lists. the program's display function is printing garbage values. i.e if n=3...i add three values and when the values are displayed the last entry is displayed and the rest two enteries are garbage values for eg. [QUOTE]MENU (Linked List) 1. CREATE … | |
I don't know how to insert a paint picture to my c++ program .Can anyone help me. | |
I have this code. but I get this error: chariot1.cpp c:\orbitertest\orbitersdk\samples\shuttlepb\chariot1.cpp(235) : warning C4700: local variable 'speedvec' used without having been initialized I was told that the oapiGetFocusShipAirspeedVector(speedvec) initialized the speedvec. Not sure how to fix this. What I am doing . Is to determine which direction a vessel is … | |
when i try to build the solution for this program i get 4 warnings. they are: c:\documents and settings\mike\my documents\visual studio 2005\projects\practice\practice\practice.cpp(22) : warning C4244: '=' : conversion from 'time_t' to 'int', possible loss of data c:\documents and settings\mike\my documents\visual studio 2005\projects\practice\practice\practice.cpp(13) : warning C4101: 'ncount' : unreferenced local variable … | |
I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is because of an example I found on [URL="http://msdn2.microsoft.com/en-us/library/336xbhcz(VS.71).aspx"]MSDN[/URL] [CODE]// expre_Shift_Operators.cpp // compile with: /EHsc // … | |
I have a template Graph class which uses an adjacency matrix (array of singly linked lists). I need to be able to initialize the Graph with a size. I guess it is done this way? [code] template <class T, int SIZE> class Graph { } [/code] My problem is with … | |
#include<stdio.h> #inculde<math.h> int main () { int R,n,A; float S; printf("plz give me the value of N elements:"); scanf("%d",&n); printf("plz give me the value of the first term A:"); scanf("%d",&A); printf("plz give me the ratio between 2 consecutive elements R:"); scanf("%d",&R); S=(pow(R,n)-1)*A/(R-1); printf("the value of the sum of a geometric … | |
i have the program written but i am having troble with a few parts. i am supposed to have the number of tries on the screen (which i do) but i need the program to ask the player if they want to play again after the game is done and … |
The End.