51,593 Topics

Member Avatar for
Member Avatar for djbsabkcb

Okay I have a problem where the name of my vector is highlighted in yellow throughout my code and my output. I changed the name of the vector but on the output the word list is still highlighted in yellow, why? Below is my code: [code] #include <iostream> #include <string> …

Member Avatar for Ancient Dragon
0
107
Member Avatar for DotNetUser

This is in VC++.NET. I dynamically create the number of buttons the user specifies. I add these buttons to an Arraylist. The buttons names goes from b1 ..bn where n is the max num of buttons. The user will provide me the button number and the text to be added …

Member Avatar for DotNetUser
0
142
Member Avatar for simon126

Program a student uses the computer to figure out his average in this class. As long as he enters grades between 0 and 100, it computes the average. If he enters -1 for a grade, it stops computing and prints out the average. I need help please someone help me …

Member Avatar for Lerner
0
261
Member Avatar for ankitrastogi82
Member Avatar for rekkoha

Can anybody in this forum page help me on getting example source codes like these ones: Any network game on Turbo C (2.01, 3.00)somethin' like that (with a filename extension of *.c) and any maze program on turbo C++ (with a filename extension of .cpp) if anybody would be able …

Member Avatar for Narue
0
101
Member Avatar for Ryrra

I have some Visual Basic programing experience but I am new to C++ I am working on a homework assignment and I am not sure why my code is not working out. I am trying to write a program that changes numbers form 1 to one , 2 to two,... …

Member Avatar for Ryrra
0
119
Member Avatar for btech

I am trying to write a program which will derive one class from another class by adding a data member to store the time zone. Below is what I have so far. However I am unsure on how to write the function to set the time zone. could someone please …

Member Avatar for Dave Sinkula
0
785
Member Avatar for cobra2003

I need help with my homework. If someone is willing to help me then I will pay you for your time. Thanks my email is << moderator edit: email address deleted >>

Member Avatar for Dave Sinkula
0
104
Member Avatar for lk9865

the purpose of this is to find the percent of error of a trnsducer and the overall error. I'm kinda stuck can you guys quickly take a look at it please [PHP] #include <iostream> #include <cmath> using namespace std; void main() { float td_1, td_2, td_3, ktd_1, ktd_2, ktd_3, err_1, …

Member Avatar for lk9865
0
99
Member Avatar for mmiikkee12

I've been trying to compile OSKit under Cygwin. It gave me a bunch of errors, most of which I fixed. I can't fix this one though: [code] /* * Copyright (c) 1996-2000 University of Utah and the Flux Group. * All rights reserved. * * This file is part of …

Member Avatar for mmiikkee12
0
138
Member Avatar for AhmedHan

I am trying to write down a Win32 program that recovers corrupted files on CDs and DVDs. I used ReadFile() function to read the corrupted file. ReadFile() is supposed to return ERROR_READ_FAULT value whenever any read error occurs. Unfortunately, the program stucks at the ReadFile() function when there exist a …

Member Avatar for Ancient Dragon
0
170
Member Avatar for calcop

I everyone, I have two C Socket questions. I have searched the net and read my reference books, but cannot find my answer. Anyway, I am making a simple telnet based server. To create a new socket I am using the following code: [CODE]newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, …

Member Avatar for calcop
0
104
Member Avatar for 3nCrypti0n

Im having trouble implementing this Queue simulation. This simulation basically estimates how long a student has to wait in line for lunch at my high school. I get the following messages when trying to compile [CODE][C++ Error] davislunch.cpp(30): E2034 Cannot convert 'line *' to 'line::node *'[/CODE] Heres the source: davislunch.h …

Member Avatar for Rashakil Fol
0
160
Member Avatar for Acidburn

Hello, I've been given this algo code to rewrite in c++ : if the list is not full then n <- n+ 1 L[n] <- new item else ERROR ("List is full.") end if [code] int main() { int list[MAX]; int i,n = 0; if (n!=MAX) { for ( i …

Member Avatar for invinate
0
113
Member Avatar for trashed

hi everybody. i am trying to develop a program that will be able to read and export informations (hw, sw, kernel, netstats..ecc) from a linux computer. my idea was to use the files in the [b]/proc[/b] directory but i can't get the script to work - this is what i …

Member Avatar for trashed
0
3K
Member Avatar for este77

I need help with some homework. I need to write a program that uses a while statement to determine and print the largest number of 10 numbers input by the user. The program should use three variables: counter: A counter to count to 10, (to keep track of how many …

Member Avatar for Dave Sinkula
0
165
Member Avatar for christyj5

I am trying to infile my data file into two seperate arrays which are seperated by a white space in my file. But I keep getting -86******* something number where my file is suppose to be any help will be very helpful. My first array which will read the student …

Member Avatar for Lerner
0
467
Member Avatar for alajaji

Hey guys am new in C, could anyone help me with this? write a program that store the values x and 76.1 in seperate memory cells, your program should get the values as data itmes and display them again for the user when done. thanks

Member Avatar for shaji
0
212
Member Avatar for tkaung80

Dear all, I am very newbie here and I'd like to start learning C programming. My OS is windows XP. Could anybody please tell me where to get C compiler ? Thanks in advance! Any help much appreciated. rgds, tkaung

Member Avatar for calcop
0
410
Member Avatar for gamesnmore

Hi, I am new to C++ I am working with C++ .NET to create a multiplayer game for a project. However I need to connect the multiple computers together, for it to work, with one computer acting as the server and the other (max of 6 others) connecting to it …

Member Avatar for calcop
0
133
Member Avatar for andy257

Hi Guys I am a new member here and basically i have joined because i would like to learn some c++. I have no prior experience in any of these high level languages. I do have experience in turbo pascal but those of you who have used it know how …

Member Avatar for TIMBUCK
0
195
Member Avatar for SpS

Why in C++ passing a pointer is not termed as a parameter passing technique.....Is it because it has a flaw of some kind i.e. address is not reflected back/we can change the address in called function..is that so...if that's the reason....then we can pass it as const pointer as a …

Member Avatar for Ancient Dragon
0
198
Member Avatar for debe2000

I am learning the C++ program and need make a program which shows a simple graph with characters or more complicated bar graph. But I have no resource to learn it,somebody can give me a example about them? Thank you very much!

Member Avatar for Ancient Dragon
0
72
Member Avatar for mym

I need help with finding the minimum value of x but I can't seem to get the code right. Please Help. Noob :sad: [code] #include<iostream> using std::cout; using std::cin; int main() { int x; // x is the duration of the call double sum; int number; double average; sum = …

Member Avatar for kimw
0
197
Member Avatar for frank_hfc

is there an exception type in c++ like the NumberFormatException in java? i'm looking to use a try/catch to do type checking after a cin input from the user.

Member Avatar for Stoned_coder
0
708
Member Avatar for stupidenator

Hi everyone, I am writing a summation program for a programming class I am taking. The assignment's main purpose is to give me practice writing functions. I have gotten the functions down just fine, but I can't seem to figure out how to write the inside of the summation function. …

Member Avatar for stupidenator
0
310
Member Avatar for imest

I am using Visual C++ 6.0 and I am trying to use an if else statment but unable to resolve error. Here is the code: [code]/*--------------------------------------------------------*/ /* Program Homework 3_3 */ /* */ /* This program computes the roots of a */ /* 2nd degree polonomial */ #include <stdio.h> #include …

Member Avatar for imest
0
153
Member Avatar for ToySoldier

Hi... thru trial & error.. I managed to get my homework program to compile. However I'm pretty sure I did it the long way :-| . **Can someone give me a direction to make it easier?** Brand new to C++ so bear with me. I have enough to make the …

Member Avatar for ToySoldier
0
175
Member Avatar for btech

the assignment i am working on ask to write a function that uses a loop to find the sum of the squares of all integers between 1 and n. then asks "what is the order of your functions?" my question, which may be obvious is what is n? and what …

Member Avatar for Dave Sinkula
0
159
Member Avatar for UriahDragon

i'm supposed to use nested for loops to estimate the value of e and display the estimation through each run. this is what i got so far, but i found out im not supposed to use setprecision so i've done it wrong but don't know what to do to fix …

Member Avatar for CrazyDieter
0
119
Member Avatar for jahowell01

This code is supposed to determine a salesperson's gross pay for last week, calculate and display thier earnings. The salesperson each receive $200 per week plus 9 percent of thier gross sales. The output should display like this: Enter sales in dollars (-1 to end): Salary is: $650.00 Enter sales …

Member Avatar for ITgeneration
0
135
Member Avatar for madt

program does not return the value entered #include <iostream> using namespace std; class testClass { public: int sum(); void print() const; testClass(); testClass(int a, int b); private: int x; int y; }; int testClass::sum() { int c; c = x + y; return c; } void testClass::print() const { cout …

Member Avatar for madt
0
145
Member Avatar for SpS

why does everyone gets so heated up..when it comes to turbo C++ compiler...can someone give me reasons

Member Avatar for Rashakil Fol
0
172
Member Avatar for steveaustin

i need in c++ for running in a compiler this 1 12 123 1234 12345 123456 and another c++ file 654321 54321 4321 321 21 1 everyone can help me i need a code for running in c++.net i need exactly in the output

Member Avatar for Narue
0
128
Member Avatar for compshooter

[FONT=Comic Sans MS]Hello evreryone, I want to start by saying I did use the search function and I did read the fstream tutorial. But I didn't see the answer I need. I have been given a text file for which I need to read input from. Here is a partial …

Member Avatar for bobobobo51
0
2K
Member Avatar for kahaj

Hello. I'm pretty new to the world of C++. I'm trying to write a program that shows the pay of different levels of employees: managers -code 1- are on salary hourlies -code 2- get str8time for 40 hours, then time & a half commission -code 3- base of $250 + …

Member Avatar for kahaj
0
305
Member Avatar for Joaquine

:rolleyes: Hi. I'm new to this forum and well I'm also new to the programming languages. :) and im taking some programming classes c++) i need help with a program that im working on... I have tried for about two days to see what is the problem but i just …

Member Avatar for Joaquine
0
138
Member Avatar for mister-fett

A few of my friends from computer science, led by me, are developing a MUD game. I plan to run the server from home, and we plan to write the game in two source files. (Yes, we are determined to do this from scratch, without Lima or Mudscript.) The first …

Member Avatar for Drowzee
0
232
Member Avatar for superservo15

I'm having type problems... if anyone could help that'd be great. Also, I haven't coded in c++ for 2 years.. very rusty :) Ok, I have the following dynamic char array and code [CODE] char* term1; term1 = "f(x)"; //i really have a loop here... if ( term1[1] == "(" …

Member Avatar for ITgeneration
0
153
Member Avatar for john233

Hello, I am doing a assignment for my class. My assignment is tying to tell how much book subscriptions sold. Here is the code: [code] // This program find out how much each subscriptions cost #include <iostream> #include <iomanip> using namespace std; int main() { float A, A1, B, B1, …

Member Avatar for Stoned_coder
0
95
Member Avatar for DotNetUser

I'm using Visual C++.NET. When the user clicked on the X in the upper right corner of my gui, I want to close my files and sockets before the gui terminates. Which form event would get triggered when the X is clicked? I don't know where to find the list …

Member Avatar for BountyX
0
136
Member Avatar for PeterX

Hi! [code] for (year = 1; year <= 15; year++) { cost = (interest_cost + monthly_instalment); totalCost+=cost; //after how many years the totalCost > price if(totalCost>price) printf(" %d ", year); } [/code] question:after how many years the totalCost > price? my problem: if the price is equal to 10 $ …

Member Avatar for Drowzee
0
324
Member Avatar for Vladvaga

I need to write a program in C++ that will compute numeric grades for a course. The course records are in a file that will serve as the input file.Each line will have a last name, first name, ten quizes all on one line... you should calculate the average and …

Member Avatar for Vladvaga
0
144
Member Avatar for Elthran

I just downloaded Dev-C++ and tried typing code. My first test was #include <iostream> using namespace std; int main() { cout << "Enter height in centimeters: "; int centimeters; cin >> centimeters; cout << "Your height in feet " << centimeters << endl; return 0; } But I have discovered …

Member Avatar for ITgeneration
0
947
Member Avatar for shahid

Note:- There are three files that will work by combining in a project. Most of the code for the Tokenizer class is already provided. You are to complete the routine Tokenizer::getTokens. The routine currently handles single entry, single range start and single range end. Your job is to the put …

Member Avatar for Rashakil Fol
0
100
Member Avatar for vartotojas

So my problem is that my function isn't working properly. I realize that this is not efficient but I need it done in one fucntion. It is supposed to be a function that draws a room and lets you walk around in it using the arrow keys in console mode. …

0
72
Member Avatar for DotNetUser

Is there a way to output data to a log file in ascii rather than binary? The example in my book only output data in binary. I want to create a log file that logs error messages that I can use to debug my code. Thanks.

Member Avatar for Stoned_coder
0
108
Member Avatar for vartotojas

I know how to use C++ to recieve input via [CODE]cin >> x;[/CODE] But now I want a way to constantly check for input without pressing enter. To my knowledge with cin you must press enter to assign whatever they typed to a variable. How could I make it so …

Member Avatar for vartotojas
0
127
Member Avatar for heavyc

i have this program and i need to count how many times each number is repeated and then delete the repeated i dont how to count them and then delete them can someone help?? [code]#include <iostream> using namespace std; struct node { int item; node *next; }; struct node *push_front …

Member Avatar for Narue
0
126
Member Avatar for heavyc

if i have a node that had a different number everytime and i want to delete only the nodes that are repeated(which has random numbers in them) and how would i count them to see how many of each i would have. can i use if statements to count the …

Member Avatar for Narue
0
280

The End.