49,761 Topics

Member Avatar for
Member Avatar for eXceed69

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 …

Member Avatar for Salem
0
107
Member Avatar for Benimaru025

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 …

Member Avatar for WaltP
0
143
Member Avatar for toko

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??

Member Avatar for sagedavis
0
111
Member Avatar for Koldsoul

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 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for dblbac

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 …

Member Avatar for Ancient Dragon
0
122
Member Avatar for sean25hun

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 …

Member Avatar for Lerner
0
78
Member Avatar for chris53825

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 …

Member Avatar for Salem
0
124
Member Avatar for HLA91

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 …

Member Avatar for HLA91
0
150
Member Avatar for sunrise2007

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 …

Member Avatar for sunrise2007
0
155
Member Avatar for cl3m0ns

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 …

Member Avatar for joshua.tilson
0
146
Member Avatar for guitarrick

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 …

Member Avatar for guitarrick
0
195
Member Avatar for nosa2008

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 …

Member Avatar for Ancient Dragon
0
97
Member Avatar for nathanrt

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 …

Member Avatar for Narue
0
3K
Member Avatar for ithelp

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 …

Member Avatar for vijayan121
0
85
Member Avatar for jaepi

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. :)

Member Avatar for Ancient Dragon
0
68
Member Avatar for Ali_110

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, …

Member Avatar for Ancient Dragon
0
203
Member Avatar for manzoor

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> …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Pačo

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 …

Member Avatar for Pačo
0
117
Member Avatar for people123

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 …

Member Avatar for helixkod
0
92
Member Avatar for Zay

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 …

Member Avatar for Zay
0
143
Member Avatar for thewurster4

:!: 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 …

Member Avatar for Joaquin357
0
267
Member Avatar for talk2tisa

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 …

Member Avatar for talk2tisa
0
109
Member Avatar for tracethepath

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 …

Member Avatar for tracethepath
0
144
Member Avatar for santhiks

I don't know how to insert a paint picture to my c++ program .Can anyone help me.

Member Avatar for Ancient Dragon
0
39
Member Avatar for gattispilot

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 …

Member Avatar for vijayan121
0
103
Member Avatar for dblbac

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 …

Member Avatar for Lerner
0
211
Member Avatar for ChaseVoid

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 // …

Member Avatar for Duoas
0
301
Member Avatar for Ratte

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 …

Member Avatar for vijayan121
0
132
Member Avatar for tarekkkkk

#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 …

Member Avatar for tarekkkkk
0
92
Member Avatar for dblbac

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 …

Member Avatar for tracethepath
0
98

The End.