Beginners (Page 4)

by rantiv
loops and nested loops
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arro...
[2 replies] Last: for (h = 0; h < arrowBaseHeight; ++h) { for ( w = 0; w < arrow... (by personxd1)
error compiling
I am working on one of my first c++ projects. I was provided with a .h file and had to write a .cpp ...
[1 reply] : What *.h and *.cpp files do you have and how do you compile? In other ... (by keskiverto)
by rantiv
reducing an if statement
So i had to write a program to determine which car is better depending on user preference and i didn...
[2 replies] Last: yes ok! Thanks! (by rantiv)
by Amker
having problem with while loop
i am new in C++,My program is asking user to enter integer, and i want to show the error message whe...
[1 reply] : It looks like the program exits due to this line: if (a < 666) retu... (by EtDecius)
writing into a map from a file
i am trying to get the contents of a file in to a map. in a more detailed explanation: the file im ...
[13 replies] Last: thanks for trying to provide help with the problem i finally came to a... (by globaltourist)
by jeg19
if statements and modulus
I was given the assignment to write a program that asks the user to enter a number of seconds. -The...
[7 replies] Last: Hello jeg19, You have two choices for dealing with a negative number:... (by Handy Andy)
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 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 kemort)
bowling score help
Alright y'all I'm not sure if I'm doing this correctly or any help would be great. I also p...
[1 reply] : As you probably know, this code will not compile yet. Be sure to revie... (by EtDecius)
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] : Please don't double po... (by kemort)
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 kemort)
input only integer
Please someone help me out with this question. I want to input only integer number, except character...
[8 replies] Last: If you do as I said, you can catch whitespace as an error. (by Duoas)
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)
Pages: 123456... 52
  Archived months: [jul2016]

Cannot post in this page. To post a new message, go to the first page.