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 nam...
[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 numb...
[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 : > ...
[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 ...
[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 c...
[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...
[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 t...
[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...
[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 su...
[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...
[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. ...
[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 (...
[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 pro...
[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...
[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 9...
[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 h...
[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 o...
[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 hap...
[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...
[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. ...
[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.