49,757 Topics

Member Avatar for
Member Avatar for Captain Spock

Hello everyone, I am currently working on my final year project and i encountered some problems with my software when using TI CCS. Right now, i am trying to print out a value from a variable and display it out into my LCD screen. I am currently using MSP430g2232 and …

0
93
Member Avatar for Octet

I am creating a MAC Database for my home network which shall contain a list of names of those on the network and allow me to quickly search for people when I get a warning about a user. I am using switch statements to go to each main section (sorry, …

Member Avatar for Octet
0
191
Member Avatar for ThomsonGB

I am just starting to use Visual Studio C++. Before I was working with UNIX (years ago). It looks like there are many things that I need to know. I copied a program from CPlusPlus.com and tried to compile it as a CLR console application. This is as far as …

Member Avatar for ThomsonGB
0
499
Member Avatar for ekin5683

hye..its kinda easy..but i still cant solve it.. [QUOTE]1.Write a program that has an array of at least 10 string objects that hold student’s ids and names, you may make-up your own strings or use the following: “1000614921, Abdulkadir Musa Jibrin” “1000717859, Abdulwahab Ali Esmail Al-Nawah” “1000716597, Ahmed Ebrahim Mohammed …

Member Avatar for ekin5683
0
2K
Member Avatar for Dakot

hello , whet i compile , i get these errors , but i dont know where i mistaked g++ -Wall -o "untitled" "untitled.cpp" (in directory: /home/btwnix/Documents/Projects) untitled.cpp: In function ‘std::string bunnynames(std::string)’: untitled.cpp:14:14: error: no matching function for call to ‘tolower(std::string&)’ untitled.cpp:14:14: note: candidates are: /usr/include/ctype.h:116:12: note: int tolower(int) /usr/include/ctype.h:116:12: note: …

0
293
Member Avatar for Awais Ali

Can anyone tell me about the "pseudo stack" ?? Also tell me some implementation... I have googled but there is nothing..

Member Avatar for Awais Ali
0
212
Member Avatar for new_in_c

I HAD A PROBLEM IN MY PROGRAM. MY PROBLEM IS ON HOW TO COMPUTE THE MONEY BREAKDOWN OF THE WITHDREW MONEY. PLEASE HELP ME..THANKS FOR ALL COMMENTS AND SUGGESTIONS.. #include<iostream.h> int main(){ int bd; char transaction; int withdraw, deposit, money; double balance = 50000; cout<<"What transaction do you want?"<<endl<<endl; cout<<"[1]DEPOSIT"<<endl; …

Member Avatar for theguitarist
0
79
Member Avatar for Lucretius

So I have an assignment where I have to read in a file that contains 6 blobs of X's, and delete them one blob at a time using a recursion. The blobs of X's don't touch, so once it hits an X, it deletes that blob of X's, adds 1 …

Member Avatar for theguitarist
0
98
Member Avatar for desolatebeast

hello all, Im trying to make a command line parser and honestly am having trouble starting it. I need a function called parse which reads one line of user input and creates an array of the strings found in the input. the function should be passed the array and reference …

Member Avatar for thines01
0
160
Member Avatar for stereomatching

[code] <xs:complexType name="common"> <xs:attr name="audio" type="xs:string" use="required" /> <xs:attr name="firmware" type="xs:string" use="optional" /> <xs:attr name="recording" type="xs:unsignedShort" use="required"/> <xs:complexType/> [/code] I want to sort the xml above by attribute "use" and make sure all of the elements with "required" would be on top, something like [code] <xs:complexType name="common"> <xs:attr name="audio" type="xs:string" …

Member Avatar for mazzica1
0
118
Member Avatar for MrEARTHSHAcKER

Hi, What's wrong with this code: [CODE] //Comments explain what I check int Array[9]={1,2,3,4,5,6,7,8,9}; int Integer=0; int i=8,n=0; for(int x=0;x<9;x++) cout<<"array="<<Array[x]<<endl; //Are all members ok? for(int exp=0;i>=0;i--){ Integer+=Array[i]*pow(10,exp); cout<<"Integer1="<<Integer<<endl; //Is Integer being summed fine? exp++; } cout<<"Integer="<<Integer<<endl; [/CODE] Program's function is to create an integer from array ( for example: …

Member Avatar for mazzica1
0
115
Member Avatar for nyfan68

I have an assignment that I am almost finished with but I am trying to figure out why my code won't compile. I believe the issue to be minor but I can't seem to figure out the bug. The problem call for me to build an inheritance heirarchy that a …

Member Avatar for mazzica1
0
101
Member Avatar for arubajam

I have a snippet of code and am trying to make sure I am doing this right. Here is what I have so far and what needs to be done. Any help would be great [CODE]#include <iostream> using namespace std; const int NUM_TEACHERS = 3; class Teacher { public: Teacher(); …

Member Avatar for arubajam
0
190
Member Avatar for pingpongplaya

I just had a very general question... I'm learning C++ and am seeing the term/variable RightHandSide used. What is the significance/origin of this and is this generally used with pointers? Is this just a reminder to the programmer? Thanks

Member Avatar for r.stiltskin
0
48
Member Avatar for Jdan2388

RK TEAM YDS YDS/G PASS P YDS/G RUSH R YDS/G PTS PTS/G 1 Philadelphia 4951 412.6 3066 255.5 1885 157.1 271 22.6 2 New Orleans 4946 449.6 3566 324.2 1380 125.5 362 32.9 3 New England 4724 429.5 3510 319.1 1214 110.4 331 30.1 4 Green Bay 4414 401.3 3345 …

Member Avatar for Clinton Portis
0
136
Member Avatar for blackhawkss4

I am doing a project that produces a gradebook for an amount of students and exam scores. the project link is [URL="http://www.ecst.csuchico.edu/~chmorris/csci111/projects/06/"]http://www.ecst.csuchico.edu/~chmorris/csci111/projects/06/[/URL] There are some additional things I need to produce besides being able to print the array chart, but I am stuck and have been trying to solve this …

Member Avatar for ravenous
0
210
Member Avatar for nyfan68

I have an assignment that calls for me to make a class called RationalNumber with the following capabilities: a)Create a constructor that prevents a 0 denominator in a fraction, reduces or simplifies fractions that are not in reduced form and avoids negative denominators. b)Overload the addition,subtraction,multiplication and division operators for …

Member Avatar for Schol-R-LEA
0
384
Member Avatar for jlharri9

I have tried everything with this problem and I cannot get it to work. My program complies and I get no errors but it is not catching my exceptions. The exception is that no grade should be less than zero or more than 100. I can find the average and …

Member Avatar for Schol-R-LEA
0
214
Member Avatar for sheennave

Hello all, In a desktop database application i encountered a really interesting situation. I write a double value into a textbox as usual. Then i convert the value into double to use in a calculation but the original value is lost ! double doubleVal = 0.0 ; doubleVal = Convert::ToDouble(textBox3->Text) …

Member Avatar for mandeepx81
0
143
Member Avatar for stan2000

I'm trying to create a filled and unfilled rectangle class. I can easily create the filled, but the unfilled one is giving me a little difficulty. Whats going on? [CODE] void Rectangle::drawrec() { if (filled == true) { for (int row = 0; row < height; row++) { for (int …

Member Avatar for mazzica1
0
159
Member Avatar for dolfan55aj

I'm working in the confines of a binary search tree and an AVL tree, doing some operations to find different statistics for these trees when given large random values. For instance some of my functions include finding the average leaf node depth, find the shallowest leaf node, etc. My question …

Member Avatar for mazzica1
0
203
Member Avatar for ccooldude

I have only started learning borland c++ programming a few months ago, I'm actually a math student, so my knowledge of c++ is pretty limited. I have an assignment where X represents an ant that moves around in a 7x7 grid box. It can move up, left, down or right …

Member Avatar for ravenous
0
205
Member Avatar for ahm08

i have this code that converts infix expression to postfix expression but the problem is that when the values are two or more digits the evaluation is wrong can anyone help me please :) [CODE]#include<iostream.h> #include<stdio.h> #include <math.h> #define SIZE 100 class Stack { private: int top; char s[SIZE]; public: …

0
60
Member Avatar for thanatos1

I'll try to keep this simple, i have an abstract class called Shape (Shape.h) which has a few pure virtual functions, cool. so I have another class called Circle (Circle.h and Circle.cpp) which extends Shape. here's the code. (In Shape.h) [CODE]#ifndef SHAPE_H #define SHAPE_H #include "Point.h" class Shape { // …

Member Avatar for mike_2000_17
0
249
Member Avatar for Jdan2388

so I'm using the nfl stats below in my program. i have the program reading in the file fine. I will be doing three different analysis to these stats one will be adding all the yards of every team and converting them into miles, the other will just be adding …

Member Avatar for Ancient Dragon
0
174
Member Avatar for fmasroor

2 questions that I have always wondered about: 1. On my compiler, I have to use [CODE]#include "stdafx.h" #include <iostream> #include <Windows.h> using namespace std;[/CODE] and not [CODE]#include "stdafx.h" #include <iostream.h> #include <Windows.h>[/CODE] Please explain the difference between these 2. (c++) 2. Why use pointers when the array can be …

Member Avatar for Schol-R-LEA
0
115
Member Avatar for cummings15

My code complies fine but freezes when i try to run it. I Believe the error is somewhere between lines 82-115 [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> #include <cmath> using namespace std; struct domList { string domName; string ipAddress; int counter; }; void insertOne(domList list[], ifstream& inFile, int …

Member Avatar for cummings15
0
300
Member Avatar for Rez11

I am making a trivia game that consist of 10 questions. I am using a class to make an array of 10 objects. I have the program all written out but when I compile I get two errors. [COLOR="Green"]Error 1 error LNK2019: unresolved external symbol "void __cdecl displayGame(class Game,int)" (?displayGame@@YAXVGame@@H@Z) …

Member Avatar for dan1865
0
195
Member Avatar for fmasroor

I am using microsoft visual c++ 2010. when I compile, it gives me several warnings, and the ocassional errors. However, most of these warnings are in the header files that are included in the program. Is there a setting that only displays errors/warnings in the program and not the includes? …

Member Avatar for Moschops
0
531
Member Avatar for Golffor1

Hello, I have a program where I am using an object array that I declare from a class. I am trying to store information from a text file into this array. I will then be doing other items like searching the array and displaying it into another text file. I …

Member Avatar for thines01
0
847

The End.