Beginners - August 2014 (Page 16)

by Bandy
If else and variables practice
 
I am new to programming and after reading the tutorial for "if else" commands I wrote this small program that checks for the largest number that was put in from...
[2 replies] Last: Yes, excluding the loops. It was a practice challenge I read on some o... (by Bandy)
Array objects acting like Quantum particles (explained inside)
 
So I have these variables. They do certain functions (obviously). Anyway it seems that if I try to write them to a file (to troubleshoot). They get completel...
[13 replies] Last: Thank you everybody who has been helping. Let me see if I can make th... (by nick050183)
by Ch1156
Drag an object with the mouse SFML
 
I want to know how to grab an object with the mouse and drag it to a location and drop it there, i tried doing it but it doesnt seem to work :( The code for it ...
[4 replies] Last: Bump Please help (by Ch1156)
by cole1
Non existing output
 
This simple code should determine if a two digit number contain odd digits only mixed numbers or even numbers only. I couldn`t test it because the output doesn`...
[3 replies] Last: Thanks to both of you ! (by cole1)
Which approach is better?
 
Passing a user defined type by value is as expensive as returning a new one? The second approach has code repetition, because operator/= do almost the same thi...
[2 replies] Last: Thanks! (by asus1575)
Factorials
 
Hi, I have been tasked with using the for loop to create the factorial of 20, which should be 2432902008176640000. Any help on how to code this?
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
Help with declaring non numerical values in c++
 
Write your question here. Im a complete begginer in c++ so im having diffuculty with this problem. This is my problem. 1. Status of boy ang girl shou...
[5 replies] Last: Thanks guys. Also the =="single" worked and cout first before cin. I ... (by spOOn2014)
having problem with using strings
 
hello everyone, its been two days since i started c++ tutorials from this site and honestly its the best i've found so far.but theres a little problem.i wrote ...
[2 replies] Last: thanks lendraDwi it worked!! (by Aqib Farooq)
by yaaz32
Windows form
 
Hey i have a windows form application. I have two textboxes. textbox1 and textbox2. I have a calculate button and when i press it. I want to add the answer...
[no replies]
by Ch1156
.append() issue
 
I'm trying to load files from a folder and I have a directory name that I push back into the vector then it appends the name of the character to load, and it ge...
[2 replies] Last: Ok that worked thank you. I hate it when i cant figure out simple stuf... (by Ch1156)
memory allocation operator new / delete, new [] / delete[]
 
Hello I made a simple code. Please analyse it and make debug ! My question is: Why 16 bytes is allocated for 3 MyClass1 objects ?? sizeof(MyClass1) =...
[1 reply] : In line 68, delete pObj2; , how does the program know how many elem... (by kbw)
Does 'delete' free memory
 
Hi, guys, I have a question here. As described in the title, when we delete a dynamically initialized pointer, does 'delete' free the memory that's been allocat...
[3 replies] Last: Okay, get it. Thanks a lot guys! (by glenjoker)
Advance Repetition program (using arrays for large whole number addition/subtraction)
 
Ok...so I'm having some trouble with this one. I think I have the right idea, I'm just not sure exactly how to do it. The program needs to accept 2 numbers o...
[2 replies] Last: stringToArray(string n) is wrong. n can be used as an array. This ... (by coder777)
by vxk
Friend function
 
Is there any difference when a friend "function/class" is declared inside a class as public ,and when a friend "function/class" is declared as private? Th...
[5 replies] Last: class Polynomial { // instances represent polynomials; e.g., 2x^7 - 8... (by JLBorges)
New to C++
 
Hi every one, I am new to C++, Can any one tell me the major difference between C++ and JAVA..
[1 reply] : Everything in java is class oriented while c++ it doesn't need to be. ... (by giblit)
by CDude
Question Permutation recursion
 
Write your question here. Hi guys, i want to write an boolnextPermutation(int array ,int arraySize), in which 1) If the maximal element of the array (which...
[5 replies] Last: Lets say that the input array is {7}. How does the recursion end? (by keskiverto)
cross initialization error?
 
I'm getting this weird error that says "cross initialization of '__'" in this part of my code. Do I need to get rid of the initializations, and I tried that, b...
[11 replies] Last: I would try doing a complete rebuild of your project, as that isn't an... (by Zhuge)
Prime Numbers Program problem
 
Ok, so I'm fairly new to c++ and this is my first time posting to this site. My problem is that my program needs to (1) find the first 100 prime numbers (not p...
[3 replies] Last: Awesome! Thanks for your help guys. finally got it working. working on... (by hoovern88)
Noob question function not being read.
 
Why wont this code work? Sorry im so nooby. Everything inside my addition function is not being read inside my main function. #include <iostream> #incl...
[2 replies] Last: aaaa ok thanks (by Badplum25)
loops?
 
Hey guys, I am getting back into coding, I have done up a console app that calculates hours/minutes between a start and finish time depending on how many pe...
[2 replies] Last: @Aceix Thanks for the reply So should I type up an if statement for... (by Ryanhuddo)
August 2014 Pages: 1... 1415161718... 40
  Archived months: [jul2014] [sep2014]

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