Beginners - May 2013 (Page 57)

Hw help
 
Everythiing runs fine but when i input more than 20 integers the program should output line 160, but still does not. Any tips #include <iostream> usi...
[1 reply] : You can't input integers more than 20 digits long in this program. If ... (by toum)
PLEASE HEEEELP!!!
 
PLEASE HELP ME! I NEED A PROGRAM THAT SAVES USER INPUT INTO A .txt file. THE PROGRAM IS RELATED TO RECORDKEEPING. IN THE FOLLOWING ORDER, THE USER MUST INPUT...
[4 replies] Last: // google does not do anything for you!!!!!!!!!!!!!!!!!!!!!!! (by closed account oNRiz8AR)
by pata
iterator loop thru string vector
 
I am trying to use to iterator to loop thru each element in a string vector, then loop thru each char in the string and change it to upper case using header cct...
[2 replies] Last: ok I understand now after playing a bit it should be: #include <io... (by pata)
highscores from a text file
 
Write your question here. Hi, I am having a problem with being able to save a score using a counter to a file and then reopening that file and sorting the prev...
[2 replies] Last: What do you mean? (by avalanche1933)
HELPPPPPPPPPPPPPP ASAP
 
GUYS HELP ME I HAVE NO CLUE HOW TO DO THIS Using the following grammar: <expression> := <component> | <component> + <expression> <component> := <factor> ...
[no replies]
by tpinon
file won't open
 
What is wrong with this code? I'm trying to create a binary file and then write to it, but my file validation keeps alerting me that the file didn't open succes...
[2 replies] Last: yes that worked! i thought since fstream is for both read and write th... (by tpinon)
Class within a class
 
I am trying to create a class in a class, and call functions and variables from the subclass. Here is the code I have so far: #include <iostream> #ifndef _...
[7 replies] Last: Ok now one last question, I did what you said but how can I change the... (by Retrokin)
Get Number of Unique Elements In Array
 
Hallo! I am trying to figure out how to get the number of different elements from an array. For example I need to know how many different books there are in an ...
[2 replies] Last: Maybe it is not an effective method but it works :) #include <iostre... (by vlad from moscow)
Sophomore cs major looking for advice
 
Hey everyone, this is my first post in these forums. I'm currently a sophomore computer science major and I'm looking for advice in improving. I did really well...
[1 reply] : Please edit your starting post and move the thread to the Lounge secti... (by Catfish4)
Need help with Ice Cream and Candy assignment
 
I just want to say that I am so tired of not understand any single word that comes out of my instructor’s mouth. After talking with an advisor, I learned that...
[15 replies] Last: Oh, thanks. (by Junomaster2006)
Output contents of user designated file to new file
 
Hi, all, I am attempting to write the code to read the contents of a text file (composed of a multi-line header and a long list of nine character words). The...
[9 replies] Last: Hi, again, Thanks to help from people in this forum, I have my file w... (by mhlester)
fibonnaci - sum
 
how to write command for the sum of the printed numbers? #include<iostream> using namespace std; main() { int n, c, first = 0, ...
[2 replies] Last: thanks man (by cosa nostra)
Using Pointers and Arrays to Compare Files?
 
So I have an assignment where I need to compare three different input channels with a reference signal and output a file with the classification at the end of t...
[no replies]
switch statement using char
 
My question is why does this not work??? I am getting error messages: "In function `int main()':" "case label `'m'' not within a switch statement" "break st...
[2 replies] Last: I did! Thank you giblit!!! (by luckyelee)
remove duplicate range of threshold
 
Hi all. I have these points t1 - t2 = say 0 to 13 t3 - t4 = say 20 to 30 t5 - t6 = say 0 to 13 t7 - t8 s= say 20 to 30 t9 - t10 = say 70 to 80 thes...
[7 replies] Last: For example #include <vector> #include <utility> #include <algorithm... (by vlad from moscow)
Retrieving User Input
 
Hey guys. void main(){ while(true){ cmessage cInput(GetInput()); ParseInput(cInput); continue; } return; } ...
[1 reply] : You tried the *<conio.h> header? *The conio.h is no longer a standard... (by Aceix)
by ledzf
Read a \t and \n separated file
 
Hello, I have a file which separated each line with \n and in each line, each data is separated by \t, that is; A \t B \t C \n I try to read this file an...
[5 replies] Last: You can use this code snip as a base for your code. struct record { ... (by vlad from moscow)
my turbo C++ ide not working
 
Write your question here. i am new to cpp and i am using windows xp sp2 and turbo c++ IDE version 3.0. my problem is that when i start, full screen d...
[1 reply] : Can you use alt+enter keys to switch between full screen and windowed ... (by vin)
by FrOzeN
Pointer to Member Functions
 
I'm trying to mimic the Get/Set Properties used by Visual Basic and other languages. I've done this by creating a Property class, with the constructor containin...
[2 replies] Last: The MessageBox(NULL, fMain.Caption, NULL, 0) works fine. Caption is a ... (by FrOzeN)
display on separate lines
 
The user gives a whole number.Print digits on separate lines. example he gives 12456. result 1 2 4 5 6
[5 replies] Last: thank you ..i have dev c++ (by cosa nostra)
May 2013 Pages: 1... 5556575859... 66
  Archived months: [apr2013] [jun2013]

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