Beginners - October 2015 (Page 34)

by Arquon
Unexpected output while writing into a text file
 
Hello, this program produces an output I dont need, and im not sure how to get rid of it, and im guessing its because of 'd'. 'a' takes 'd' place as any number ...
[7 replies] Last: Please don't supply "decorated" input. Just the plain stuff as it appe... (by cire)
Returning something to main() so it can end the program (1,2)
 
Hi, so I am building a calculator with extra features such as checking if a number is prime and finding a gcd of 2 numbers. So anyway, I decided to write a func...
[29 replies] Last: Merged your codes together, LB and JLBorges, and it does exactly what ... (by DDomjosa)
trying to use dynamic memory to create a new node?
 
I know you guys don't like the word help, and I assure you I'm not looking for anyone to give me an answer. This is a homework problem, and it requires me to us...
[3 replies] Last: Thanks for the response. I actually am using multiple different functi... (by GaryWalker96)
How to add function prototypes?
 
Hi all, I'm new here and needed some assistance regarding this program I'm writing. I'm trying to make the 2048 in c++ and I'm using switch statements to contr...
[4 replies] Last: However, I'm not sure how to add a function's prototype return value ... (by closed account E0p9LyTq)
At home?
 
I want to do BS in software engineering. But I live in a city in which there is no university and for studies I don't want to live in hostel of other city. But ...
[2 replies] Last: Thanks pearlyman for encouraging me. I am joining virtual university b... (by ZahoorKhan)
Need help with adding numbers in an array.
 
I need to compute the sum of the values in an array of integers of length 25 read from a file named "numbers.txt." Below is my program that lists the numbers an...
[5 replies] Last: Ok so basically you are saying that I should use a for loop instead o... (by kbw)
by TPL
[TCLite] [C++] Help With Looping (I think)
 
Program: Write a program that will give a person their fee for riding in a Taxi. It costs $2.00, plus an additional $.75 for every QUARTER-MILE. --------------...
[3 replies] Last: Thank you both, cannot believe I couldn't see that, looked at it for a... (by TPL)
compiles but shows blank cmd?
 
compiles and just shows a blank cmd? #include <stdafx.h> #include <iostream> int number(int x) { return 2 + x; } int main() { using namespa...
[2 replies] Last: Ah, i was confused at first thanks for this. (by NEWxGUY)
by Smoky
Need assistance with Recv
 
Can anyone please explain me how should I write in a command to recive a message from server. I got command Send working. It's on bottom, under 'while'. It's ma...
[10 replies] Last: Just did it! Just like you said! Thank you a lot once again :) (by Smoky)
Error when multiplying
 
This is the error I am getting. Severity Code Description Project File Line Error (active) no operator "*" matches these operands Variables c:\Users\mumin\Docu...
[6 replies] Last: What are you trying to achieve with that line? Why are you trying to ... (by MikeyBoy)
help with looping or restarting the program
 
hello im having trouble looping my program basically i thought of do while loop but i don't know if it's possible in my case because im making a program with ...
[4 replies] Last: So where's the problem? Anyway they all do the same thing if you inco... (by closed account 48T7M4Gy)
by Dazzer
Another Q about operator overloading.
 
Hi folks, I'm confused by the example code below from: http://www.learncpp.com/cpp-tutorial/92-overloading-the-arithmetic-operators/ What is getting me confu...
[8 replies] Last: There is no loss of conceptual integrity if we consider, a la std::ba... (by JLBorges)
two dim array_question
 
hi i just have created an account and i really want you guys to help me with my assignment.. { Q-A: Write a method to initialize the array below with the gi...
[4 replies] Last: yes it worked thank you.. kemort :) (by whyragad)
-nan
 
Hello, I'm getting -nan at the end of the console, even tho all doubles are numbers #include <iostream> using namespace std; int main() { double m,...
[5 replies] Last: No. Use if instead: bool is_div_0 = false; if(t != 0) { const auto d... (by coder777)
Get data into an array and randomize output
 
Hello C++ Guru's. I have a little bit of a problem with a bit of come. I'm making a little "game" where you guess on a number 1-50 and if you guess the righ...
[1 reply] : in c++ you can use std::vector<int> to store the input. std::vector<... (by liuyang)
by GFring
beginners class problem - testing constructors
 
I want to test the constructors I made, and I'm have trouble with Coord(int x,float d); where I am supposed to assign them all the same variable value coordT...
[2 replies] Last: d = test01.distBetweenPoints(test02); // <-- how is this compiling?... (by mutexe)
Need help with my avg formula
 
Wondering why it isn't giving my an average amount,l it worked before i fixed the formula now it's out of wack and giving me a triple digit number the program ...
[3 replies] Last: Per employee: ordinaryTime overTime pay = ( ordinaryTime * nor... (by closed account 48T7M4Gy)
by Aceix
Converting decimal integers to binary form
 
Pls may I have pseudo code on one way to convert a base 10 integer to its binary equivalent.
[2 replies] Last: http://lmgtfy.com/?q=how+to+convert+doubles+to+binary+c%2B%2B+psuedoco... (by Radar)
[Win32 API] Looking for tutorial / guide.
 
Hey folks, I've got my app up and running and am at a point where I'd like to clean up my main.cpp a bit and put all the stuff needed to make the window(CALLBA...
[no replies]
Question about case with return, object destructor, and dynamic memory
 
Hello, I have a class that contains a vector member, which stores a lot of data. I want the class to automatically clean up the memory when an object of this c...
[1 reply] : 1) clearing vector in destructor is useless: it would be destroyed any... (by MiiNiPaa)
October 2015 Pages: 1... 3233343536... 57
  Archived months: [sep2015] [nov2015]

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