Beginners - November 2015 (Page 52)

Need help with arrays and functions, mostly problem solving
 
So I'm writing a program that gives the user a menu of 4 choices. The first one creates an account, the second deposits money into the account, third displays t...
[no replies]
Swap variables
 
my teacher asked me to swap to values using two variables, and a temporary variable,im not sure how to "swap " them, im kinda stuck and not sure what i should d...
[4 replies] Last: Thanks alot magnum pi! i solved it, thanks for the details! (by bardo99)
End of File
 
Hey Guys. I need help with my program. I'm trying to read from the end of file and then print it onto the screen. But when I run the program it goes into an ...
[1 reply] : Are you sure the file actually opened? You really should check to ins... (by jlb)
variables question
 
I've got a question regarding variables that i can not work out... If I comment out the global double input = 0; and uncomment the local double input = 0; in ...
[4 replies] Last: @magnum pi Thanks for the explanantion, I think I understand. We had ... (by jamesfarrow)
Passing Arrays: Top_Div
 
I'm a bit confused on how to pass an array that contains a string. My program is supposed to calculate the winning division of a company's sectors. The original...
[7 replies] Last: I noticed your call to "top_div_index = findHighest(div_sales, top_div... (by magnum pi)
dynamic cast c++
 
Hi, im adding a short code. can you please explain me why the following dynamic casting execute what i wrote? i dont understand when this casting fails or no...
[6 replies] Last: No, you used the address-of operator so you did have a pointer. The po... (by Zhuge)
Calculator Help by NEWB.
 
Hey guys, I am VERY new to C++ and I'm trying to write a calculator. The calculator has declared numerical values for alpha characters. Basically I wan...
[3 replies] Last: Well thanks for not being harsh guys. When I said I was NEW, I meant i... (by AwakenedOne)
Printing out specific values in arrays
 
Are there any online resources that give you real world references and example code? My problem is that my homework on arrays involves looking through an array ...
[2 replies] Last: Thank you! (by cdog439)
Does encapsulation help control the values that are assigned to member variables?
 
Does encapsulation help control the values that are assigned to member variables?
[2 replies] Last: IMO, yes. Member variables have valid ranges and possibly interdepend... (by TheIdeasMan)
Print a flag
 
Hello all so I'm in my first year of college and we have to make several programs that print a flag, I've succeeded printing all the programs but two. So I cre...
[no replies]
create a file with current system date
 
hello! can someone provide me the code to create a file with the system date as the name of the file example "1-11-2015.txt" also how do i write data into the...
[1 reply] : There is an example @ http://www.cplusplus.com/reference/ctime/localti... (by ShiftLeft)
by guru23
Factorial function
 
I'm trying to get the factorial of 5, for example, but it won't let me. I've tried almost everything but I can't seem to figure it out. Thanks for taking the ...
[4 replies] Last: The answer to this problem is exactly the same as a previous Topic you... (by TheIdeasMan)
how can i make this program?
 
in it were supposed to type a number and the program should display it's square, cube, number^4, number^5,..., number^10. How can i make this using the while l...
[8 replies] Last: Like i mentioned above im a newbie. i started c++ less than a week ago... (by kamilhassaan)
Build Tools / Compilers for C++ ?
 
I'm not sure if this is the right section for this question so please move it if so. I'm finally at the end of my tether with my current setup. Currently us...
[6 replies] Last: > I could build the software using that overlay and run it on a normal... (by JLBorges)
square root recursion problem
 
I am new to C++ - pleaase bear with me! Below is a bit of code to find square roots recursively. Although it works, the answer is always 7 characters long? I ca...
[1 reply] : Thank you very much!! Problem solved :) (by jamesfarrow)
REally need help passing SFML sprites by reference to main loop
 
Surprisingly, a lot of SFML documentation on drawing to graphics only seems to cover declaring images glabaly, Im trying to create a sprite wrapper so I can d...
[1 reply] : XD TWO DAYS OF BEING STUPID AND I SUSS OUT I JUST DIDNT GIVE TEXTURE A... (by devonrevenge)
by virock
Need help understanding Ai implementation in tic tac toe
 
Write your question here. Good morning everyone, i have read a lot of the AI topics here concerning tic tac toe. Honestly, the more i read, the more confused i...
[no replies]
by hdyh
linked list not working
 
I just want to make a linked list program that can insert node, delete node, find node and display all the node, but i was not expert in program. i have tried t...
[no replies]
Code Ideas
 
Hello, I'm new to C++ programming even though I already coded some basics,but still I want to improve my skills.Do you guys know where I can get ideas to code s...
[no replies]
by Stl784
Priority Que help Counting Letters (1,2)
 
Hello, I'm fairly new to c++ and would like some help with this code that I'm writing. It's supposed to print out, the number of times each letter is presented,...
[25 replies] Last: Again thank you so so much for all your help :). (by Stl784)
November 2015 Pages: 1... 50515253
  Archived months: [oct2015] [dec2015]

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