Beginners - September 2016 (Page 9)

please help me, How do I delete line in a txt file and how to make an edit funtion?
 
Im having trouble, the program will create two file, one is a txt file (to display all the movie name) and the other is the file to store the information of the...
[2 replies] Last: void decor() { cout << "******************************************... (by berryben)
Weird array exercise.
 
There is a number k occurring in a sequence which is larger than zero. The number k is a "magic number" if a following condition is met: - In the sequence, the...
[8 replies] Last: welcome :) (by shadder)
cant find my error
 
The resut will be "user name is:-858993460" dont know where i did wrong thx a lot for helping : > #include<iostream>; using namespace std; int main() ...
[3 replies] Last: ok thx ill try it now (by aaronkong)
Started over with new errors now
 
i recently commented out all of my code so that it can compile so i can take it step my step slowly uncommenting the code. now i am stuck with these errors and ...
[5 replies] Last: multiple post, or paste it in pastebin.com and post the link (by shadder)
by stas76
can't correctly convert
 
Hello, I heave question about converting the integers to the char with static_cast there is simple code #include<iostream> int main() { int n; for (n=25; ...
[2 replies] Last: You can convert integar to char like this: #include<iostream> #inclu... (by boost lexical cast)
I am trying to create a program that converts Metric to English units
 
Here's an example of what my professor wants: 1. Convert length form Metric to English 2. Convert length form for English to Metric 3. ...
[6 replies] Last: #include <iostream> using namespace std; int main(void) { int f... (by closed account 48T7M4Gy)
Opperand types are incompatible ("IPRecord*" and "int")
 
I'm trying to read in the next value in the input.txt file and do a binary search within my vector to see if it is there or not, but I'm stuck at this error. ...
[1 reply] : As your comments note, the error occurs when the program tries to comp... (by EtDecius)
checking for duplicates array
 
Hi. I'm trying to check for duplicates and prevent them from being added in my array. I wrote a loop in the addin function to check if a name is a duplicate and...
[1 reply] : http://www.cplusplus.com/forum/general/198263/ Please don't double po... (by closed account 48T7M4Gy)
eorror on the top (preprocessor line i think)
 
hi, i've been trying to run this simple code, but i got errors on the preprocessor directive. Not sure why. The instruction is as follows with the source code....
[4 replies] Last: #include <iostream> using namespace std; int main () { float a... (by closed account 48T7M4Gy)
ifsteam for loop not working
 
I'm trying to make a file named test.txt that looks like: line1 line2 line3 say the name is (line1) the age is (line2) the snack is(line3) The...
[2 replies] Last: Thank you! (by Justanoob)
Error: No matching function call to
 
Hello, I'm currently working on a lab for my programming class, I'm stuck on this repetitive error. SortedListLinkedDriver.cpp: In function 'int main()': So...
[1 reply] : SortedListLinked(int (*comp_items) (T* item_1, T* item_2)); you said... (by ne555)
Making inserting to a Class** more efficient
 
So I have a class called IPRecord. The program I'm supposed to write takes information from a file ("input.txt") and performs a binary search to find if the add...
[2 replies] Last: Could you post the whole source code? I might be able to help you out ... (by darkone41)
Loop won't break or return
 
I have function that should keep looping until "Return" is entered. Whenever I enter return, the program ignores it. If I type it once more, it goes to the else...
[3 replies] Last: Nevermind, it was an oversight on my part. The error was actually in m... (by garretmorion)
PLS HELP!
 
Ok so I feel this site is really reliable and I can get my learning on. But I want to know about the tutorials. Ok someone that has completed all of the tut...
[1 reply] : I have completed the tutorials here about a month ago. I'm a bit iffy ... (by boost lexical cast)
2d vectors, seg fault
 
I have this function that is supposed to take a 2d vector by reference and rotates it clockwise by 90 degrees. For some files I get a seg fault and for some the...
[3 replies] Last: If the height and width of the original matrix are not equal, the heig... (by cire)
Input/Output with Files Trouble
 
I want to read from a file called test.txt that has the following terms 1945 egg vegetable I have both a file with above called test.txt and the code belo...
[3 replies] Last: fixing it, it says, lab08.cpp:11:22: error: expected initializer bef... (by Justanoob)
Geometry Circle Distance Problem
 
I am wondering why I can't input the second set of numbers in my code. After I enter the first set of numbers and press enter, it solves the problem, without le...
[3 replies] Last: Don't use a comma to separate your input, use spaces. (by booradley60)
Finding a problem
 
•Describe the symptoms of your problem carefully and clearly. Once I input something, nothing happens, and still asks for another input. •Describe the env...
[6 replies] Last: http://www.learncpp.com/cpp-tutorial/71-function-parameters-and-argum... (by TofferP)
by Lado
For-loop for finding numbers in an array
 
Hello, I´m writing a program where I have an array with numbers and I need to find the smallest an the biggest number in the array. The teacher made the examp...
[1 reply] : I'll give you pseudocode int find_smallestNumber( int number , int ... (by mpark4656)
Multiple classes in .h?
 
I'm doing an assignment here... Up until now, I've only seen examples with 1 header for each class. But in this assignment, there are multiple classes in the pr...
[6 replies] Last: hoboCPP, I know in Visual Studio I have to include stdafx.h * in eve... (by Handy Andy)
September 2016 Pages: 1... 7891011... 34
  Archived months: [aug2016] [oct2016]

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