Beginners - November 2016 (Page 16)

Does any can help me with my program?
 
Why my while loop did not work? this is a tic tac toe game, and it is my final exam in my school. #include<iostream> #include<cstdlib> #include<string> u...
[2 replies] Last: thanks (by lxz199696)
C++ Array
 
Hi everyone, I have a question on my code. English is my second language sorry if that's confusing to you. when I run my code I have to enter 11 numbers in...
[3 replies] Last: Thanks kemort. It works now. :) (by noymiller)
Function must have integral or unscoped enum type?
 
Fairly certain this is common to receive, but everytime I try to find someone with this error I find them getting the same error but with different events, so I...
[2 replies] Last: It's worth mentioning that the carat ^ is binary exclusive-OR, not e... (by mbozzi)
Printing a Square
 
Hey guys im trying to make a program that recieves a number and makes a square using X's in that size. Cant get it right....any ideas? #include<iostream...
[2 replies] Last: #include<iostream> using namespace std; int main() { char s = ' '... (by tibrado)
by nu123
stray 240 in program error
 
hi there I have a code wrote for converting feet and inches to meters and centimetres. but I'm getting a heap of errors saying 240 in program error, can any tel...
[1 reply] : I found my problem, I had to stick all my code tight to the left for i... (by nu123)
by jycpp
Pointer array
 
My program for class right now is asking me to create an array using pointers? I this is the first time we're learning pointers, and the only available materi...
[2 replies] Last: #include <iostream> #include <string> using namespace std; // Protot... (by jycpp)
Help with 2 small issues I'm having in a store program!
 
Hey guys, I have two issues. First one: My validating while statements aren't working exactly how I want them to work. I am validating that the input is in fac...
[1 reply] : MisterTams, I recommend using a 'char response' not s... (by tibrado)
Help Programm!!!
 
Hi i found this in a site and i did it in C++..But it doesnt work for all the input samples...Can anybody help me? Each vessel with sonar available, may co...
[1 reply] : Hi i found this in a site and i did it in C++..But it doesnt work for... (by Nanako)
Beginner code completed question?
 
Hi everyone this is what I have so far for the following problem so far its working correctly I just want to know how to move the numbers to display under the...
[2 replies] Last: Hello elanor, In line 48 you can use a combination of std::setfill('... (by Handy Andy)
My function only returns the value of 0...
 
I've been working on practicing functions, and so I've got a function that continuously returns 0 even after parameter changes, and I'm not exactly sure what is...
[1 reply] : Change all you variables to float. Long only deal with whole numbers. (by tibrado)
There's an unwanted changed line between two variables
 
Between two string type of variables, course_number , title I want to print them in a same line but the line is changed somehow. What I want: course c...
[2 replies] Last: The course code will be like 123-123-123, and the course name is 'math... (by sigurros)
int function return int and print to screen?
 
Hello c++.com. I am very new to programming and c++. As an exercise I am trying to write a simple program that asks the user for their birth year then calcul...
[5 replies] Last: > When I cout my int function, it seems to re-run thats integers f... (by ne555)
by pork95
C++ Matrix, can Popeye get to Olive
 
There is char matrix A with M rows and N colums. Elements of that matrix are "#"(walls) and "."(roads), P(Popeye) and O(Olive). Example: #.......#. #.....
[5 replies] Last: like this? Yes. what should i do now to make it print yes? Line 3... (by AbstractionAnon)
Error: expected 'while' before numeric constant.
 
Hello, I have been trying to make a program where the user is presented with an array of 10 variables between the numbers 50 and 150. I have several other qu...
[4 replies] Last: I would suggest removing the {} at lines 7 and 9. Although the braces... (by AbstractionAnon)
How do I make an itinerary file in C++?
 
Hello. I need to make an array of airports. The program needs to ask the user for a string of 3 letters for the airport code (e.g. SAN, or SFO), the latitude a...
[3 replies] Last: Line 14: You still have two unused globals (port1, ports2). Globals ... (by AbstractionAnon)
Not sure how to read my data
 
I have the following data in a file, which I wish to read in. My struggle is in reading the numbers that are more than 1 digit (if it were just a digit I know h...
[1 reply] : To some extent, how you would read the data depends on what its meanin... (by Chervil)
URGENT~ Draw undirected path graph on Window Form Application C#
 
Hello everyone, I am a beginner using C/C++. I am a Malaysia, Please forgive me if my English is bad. Guys, I have a problem on coding undirected path graph u...
[no replies]
N-ary tree - mirror
 
I've given a n-ary tree in .txt file, where first integer is parent and the next ones are child of it: 1 2 3 4 5 3 6 7 5 8 8 9 10 11 0 (represents t...
[7 replies] Last: Bump! (by Maartin)
by Nakruf
creating folders using windows.h
 
What is the new way of creating folders using windows.h and why does this syntax now require a const char? #include<windows.h> int main() { Creat...
[1 reply] : bump (by Nakruf)
Ceasar cipher
 
As you can see in the code the first encrypter moves the letters 13 steps for the five first letters and the second moves the letters 7 steps for the next five ...
[5 replies] Last: You have the code to rotate a character an arbitrary amount of times. ... (by integralfx)
November 2016 Pages: 1... 1415161718... 44
  Archived months: [oct2016] [dec2016]

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