Beginners - October 2008 (Page 14)

Searching for substrings within a file
 
I am currently working on an assignment for my CS1 class and need help. We are to write a program that reads three files, one which serves as a master text fil...
[3 replies] Last: I would stick with getline to get stuff you the file, since I am prett... (by firedraco)
by matiw
copy constructor for const members
 
hi everyone; i need to know how to make a copy constructor that let me copy a value of a const member thanks
[2 replies] Last: thank you i was not sure if i could do it in this way. it really sol... (by matiw)
Trouble with (propaply) an array.
 
I was trying to make a function to find the GCD... What's wrong with it? int divisorlist ; int findGCD (int& a, int& b) { int x=2; int i=0; ...
[3 replies] Last: And how the for loop should be? (by HeatMan)
Did I do this right?
 
Write a program that inputs a line of text with functin gets char array s . Out put the line in Uppercase and in lowercase letters. When I run the program it ...
[1 reply] : That just means it doesn't have to load any symbols...it's not an erro... (by firedraco)
Something wrong?
 
#include "stdafx.h" #include <iostream> #define pi 3.14 using namespace std; int main () { double circle; int n,a; n=1; a=2 ;{ l...
[10 replies] Last: Thanks psault I got it (by drag421)
by Hazer
Delete one letter
 
Hi, thaks for this forum becaus i'm working A-OK now! I've got one questios... How to delete one letter from screen?(after pressing enter)
[4 replies] Last: If you know where the letter ist, yes it is possible to overwrite the ... (by int main)
Guess My Number Problem
 
In this Guess My Number Program, you have 20 tries to try and get the number 1-500. It tells you if its bigger or smaller. Anyway, I run it and I enter a random...
[7 replies] Last: As far as what i understand, this program would only need just a singl... (by ja23jr)
by kaisin
need assistance in drawing graphs...urgent! Tchart Line graph
 
hi, am going in to see my professor in 1 hr time and have yet gotten the graph plotted. what i need to do: i have a series of readings which i have to plot o...
[no replies]
by true
Little problem with Dev-C++
 
Hello, I have some compilers installed on my PC - Dev-C++, lcc-win, Borland C++. Most of the time, I compiled my programs with Dev-C++. But from Yesterday, ...
[1 reply] : I had this problem too. I don't know why it worked before and then sto... (by tgruwell)
How to sort an array of integers and an array of strings at the same time?!?
 
I need to write a program that allows the user input 5 student's names and grades. Then the program would sort the data and output who has the first highest gra...
[3 replies] Last: The name has to change at the same time the grade does for example ... (by Umz)
String/Data to Array
 
Goal: To store data in an array. What: Given a list of data say something like this George 57 87 Adam 84 57 Mike 23 59 I want to p...
[1 reply] : Use a map (or a vector of pairs, but the map is better for this). (by firedraco)
What is the difference between VB script and Java script?
 
Which one is the better tool for client side validation? I am using java script .Can any one suggests which one is the better? NJ website development www.ne...
[2 replies] Last: Javascript would be better. I'd question the VBS engine on Linux/FireF... (by Zaita)
by chiwah
what's wrong with the program?
 
i would like to write a console program that replace some lines in a existing bin file, the command for the program should be "xxx desire.bin startbyte endbyte...
[1 reply] : Where's your fopen() for the fptr? (by TheWzrdOz)
by sparky
Pointer to a Linked List
 
Hello, I keep getting the following error when ever I try to create a pointer to a linked list from another class: C++ forbids declaration of 'ContentsOfFi...
[1 reply] : You at least have to forward declare ContentsOfFile before using it. ... (by jsmith)
Cin problem.
 
Hi guys. I have a small problem that I can't solve. And I don't think the problem is that hard, except the professor puts a lot of restriction on what I can use...
[5 replies] Last: LOL, thats entertaining at least, your prof. is a funny guy (by Umz)
by elika
Simple games on comp
 
Hello. I'd like to get some hints for a game. I'm not getting how to start with the problem: Matchstick game that comp should win always. Out of 21 matchst...
[3 replies] Last: for the hanoi...You can use recursive function.If you know for n-1,you... (by Nandor)
Loop Issues
 
Hi, new to the world of C++! I'm trying to write a program to compute the intersection angle between two sloped lines from a set of data given as an array. T...
[3 replies] Last: Just put the input at the start of a loop, eg; ifstream slope_a; ... (by Faldrax)
How to Check Values in an Array
 
I have a program in which the user inputs data and it gets stored into an array. However, no two of the same values can be stored in the array. I have to write...
[7 replies] Last: For the cityExists() function, what value are you puting into name ? ... (by Umz)
opening a file
 
i understand that you can use c++ to open a file to read, but when you output in a file can you then make the program put the output in the file and open the fi...
[2 replies] Last: Yea you can do something like what firedraco says to output data to an... (by Umz)
by quant
class _> struct
 
Hi all. Please, help me in this. I've that strange template class and I want make with it the struct. But I just don't understand what do in it "c(id)(seek)(p...
[4 replies] Last: I'm no expert but I'm pretty sure that C doesnt have templates, I th... (by Umz)
October 2008 Pages: 1... 1213141516... 20
  Archived months: [sep2008] [nov2008]

This is an archived page. To post a new message, go to the current page.