Beginners - October 2016 (Page 14)

I need help for a value by reference program
 
I need help for a value by reference program with the area of a rectange Why doesn't my code work??...
[4 replies] Last: Line 56: You can't return 3 values. See the comma operator here. The... (by SakurasouBusters)
BET HELP!!
 
I had a bet with my friend, this is my second question posting on C++ ever. My first experience wasn...
[4 replies] Last: Don't spam the forum with multiple threads on the same topic. it wast... (by MikeyBoy)
lines to txt file
 
I have two issues, so far, I am able to open an existing txt file, and write a line of code at the e...
[4 replies] Last: > if I wanted to say, add a line of text in between a certain line, wo... (by JLBorges)
Loops - Drawing a Tree (c++)
 
Hi! I'm having trouble with this problem. I was wondering what would be the best way to do this? ...
[7 replies] Last: alright, thank you so much! (by student2019)
random
 
help me to solve this Fill out an array of as many as N random numbers from 0 - M N and M enter...
[7 replies] Last: The language of the identifiers is not a real issue. We see a lot of m... (by keskiverto)
by om4r97
logical error with Fstream
 
i have to initializes data from file and use array of struct to output the final result my text Fi...
[4 replies] Last: i.open("lol.txt"); Should be : string fileName("lol.txt"); i.open(... (by SakurasouBusters)
Validating a C - String (Numeric or Alphabetic)
 
Write a program that asks the user to enter a part number to order. The rules for creating a part nu...
[12 replies] Last: Okay I'll look into the problem. Thank you for your help once again la... (by Helexander)
Is there anyway to quit using String name
 
Is there anyway using string name to quit program. by using number in string to quit program. for ex...
[6 replies] Last: Thanks @Handy Andy.. its works :) (by DesmondLee)
Text based "dating" game using OOB advice, Passing objects to contructors
 
So I'm making a text based game using Classes, inheritance , derived classes and the such for a clas...
[2 replies] Last: Thank you much! More than anything I was hoping to get guidance on how... (by archidit)
How to store a random number in array
 
Hi everyone. I'm still new to programming and now I have some issue on the array So now, I had copie...
[2 replies] Last: Thanks for your info. (by ivesklt96)
Name a out file using strings
 
So I want to create a file to output some information into and want to include to user inputted stri...
[4 replies] Last: std::ofstream gamefile(team1 + '@' + team2 + ".txt", std::ios::app); ... (by cire)
Function that takes a string and character and returns number of occurrences of character in the string
 
Function that takes a string and character and returns number of occurrences of the character in the...
[5 replies] Last: We can see that code in the OP. The question is "What are you doing... (by cire)
Help with figuring out what's wrong with my game? (Mastermind)
 
I'm coding up a game called mastermind. It's in a really simple state. Basically there are four spot...
[2 replies] Last: The line 39 : (guess ==spot ) ? (chkSpot ='O') : (chkSpot ='X'); S... (by SakurasouBusters)
Difference between creating an object with or without new operators
 
Hello, I am asking a question here for the first time. So, I hope would like to help me. I just wan...
[2 replies] Last: Very much thanks to mbozzi. I am highly thankful to you for this detai... (by kamal choudhary)
Inheritance
 
I don't understand how inheritance works entirely. I'm trying to make a program that counts the numb...
[1 reply] : I think I figured it out but I would like some conformation from someo... (by rorschach775)
2D Arrays
 
This program is supposed to output the row and column of the number entered by the user but it is no...
[no replies]
Outputting Card Notations
 
Hi there noob here who for an assignment is trying to make a program where you input a card notation...
[3 replies] Last: You can use a for loop and a string array and they will help you compl... (by SakurasouBusters)
by w0rd
Help with functions/files (1,2)
 
So I have done the code without the function, which is where I am completely stuck. If you could ple...
[21 replies] Last: Hey Andy, Thank you so much for taking time out of your day to explai... (by w0rd)
Invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
 
So I'm writing a program that takes a user input size of an array as well as the arrays numbers retu...
[2 replies] Last: 1. for (int i; i , size; i++) Should be : for ( int i = 0 ; i < ... (by SakurasouBusters)
Expression Error
 
so I'm getting an error message that says expression must be an integral value or unscoped enum type...
[1 reply] : 1.) Lines 5 - 10 will execute indefinitely, because they are inside of... (by xismn)
October 2016 Pages: 1... 1213141516... 51
  Archived months: [sep2016] [nov2016]

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