Beginners - March 2014 (Page 52)

gag program
 
i would like to learn how to run a timer and this is my fun test code for now later i will use it for a real code check line 10 for what i would like to do. ...
[3 replies] Last: #include <windows.h> #include <conio.h> #include <cstdlib> int main(i... (by SorinAlex)
random number generator
 
My random number generator game. #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> using namespace std; int main() { ...
[2 replies] Last: Where is the question Also you probably want to seed outside the loop. (by giblit)
by bbb718
help with simple function
 
does anyone know how to write a simple function that will take 3 ints and find the sum of the higher 2? this is what i got so far int findsum(int a,int b,i...
[3 replies] Last: void swap(int& a, int& b) { int temp = a; b = a; a = temp; } i... (by Stewbond)
Help With C++ Fraction Calculator Program Please
 
Hello, I'm currently writing a program that is supposed to add, subtract, divide, and multiply fractions. I've been tinkering with it all day and I just can't s...
[1 reply] : For starter you're using an int with division, which is not good since... (by Peppercorn142)
by limyh
Swapping array contents of different size
 
Hi all... I'm stumped on this problem and my array contents are not swapping correctly. The output looks like this: sssssss aaa aaassss sss I need the...
[8 replies] Last: > This is where tuple unpacking can come in handy To swap two objects... (by JLBorges)
Cannot produce output with this function
 
Everytime i run it...the value is always zero...can someone help me?edit the code #include <stdio.h> float countfee(int); int main() { int tota...
[2 replies] Last: i try to use function operation...the body from 11-39 is for input and... (by saufi95)
Getting back to writing codes after 10+ years of break -- Which book(s) to study?
 
Greetings to all who happen to read this thread, This is my very first post here. I wrote, among many others, these console applications (linked here as pictu...
[9 replies] Last: > http://www.planetpdf.com/developer/article.asp?ContentID=6634 Downl... (by JLBorges)
by dan2n1
Need help with series for loop
 
Hello everyone, I am a newbie to C++ and programing. I am in need of help in a lab: Write a program to calculate and print the result of the following series ...
[2 replies] Last: Thank you for the help ats15. (by dan2n1)
Simple for loop question.
 
How do I get rid of that plus sign? http://postimg.org/image/5dfggoh3r/ #include <iostream> using namespace std; int main () { int i, n; int sum ...
[3 replies] Last: YEAHHHHHHHH!!!!!!!! it works!!! thank you "usandfriends"! (by frogmoney712)
by giblit
Code Optimization
 
I am trying to optimize my code fully because right now it is extremely slow. I tried a bunch of different things but still can not get it optimized enough. If...
[2 replies] Last: For the program I am going to be using it on I need that since the num... (by giblit)
by kiino
Employee Production Worker Problem
 
Hey guys, so I generated the header file for both the Employee and the Production worker classes and I created an array to pass arguments which worked nicely. ...
[2 replies] Last: Yeah I figured it was. I decided to turn the Worker array into a point... (by kiino)
by fc3s
do while looping problems
 
Hi all, this is a very novice post (and my very first post), but I am having a problem getting my do while loop to work. I think I have it set up correctly, but...
[4 replies] Last: Thanks I got it now! (by fc3s)
default constructor
 
So I have this problem and so far I came up below and needs some guidance in how to start this project. Thanks. I'm not whether taxrate and tip should replace...
[no replies]
switching to code blocks
 
ok so i usually have been using dev c++ and am making a switch to code blocks. i uninstalled dev c++ and downloaded code blocks. my computer still wants to open...
[no replies]
by dero
delete the last and first line in an interval
 
hey all well I have been facing this problem for days and I don't seem to get an answer to it. I have written a code where my program is suppose to read speci...
[1 reply] : @chervil can u plz help me out (by dero)
Tic Tac Toe problem
 
Hello all, forgive me for including my entire program, but the problem is very annoying and I can't figure out where it is. Essentially, after a winner or a ti...
[2 replies] Last: Part 3 //tests to see if there is a winner or not int Draw::testWin... (by pilotnate)
Recursion confusion
 
I'm really stuck on this one: Write the definition of a function named copy that reads all the strings remaining to be read in standard input and displays ...
[12 replies] Last: You could try something like this: #include <iostream> #include <stri... (by long double main)
Overloaded Equality Operator Question
 
In my program I am attempting to compare two "Contact" objects using the overloaded equality operator. I am clearly defining it wrong because in the "contains" ...
[9 replies] Last: Glad I could help :) If you have no more questions, you can change top... (by MatthewRock)
class
 
I want to write a class which keep to employee's informations.But I made a mistake somewhere but I didn't understand.Please,help me.Thank you. employee...
[1 reply] : What is the definition of "Employee"? (by keskiverto)
Why does this compile?
 
Why does this compile? Value isn`t known till run time? What if this was to return a variable that was not a constexpr? #include <iostream> using std::co...
[2 replies] Last: That value is known at compile-time, if the compiler is aggressive eno... (by keskiverto)
March 2014 Pages: 1... 5051525354... 79
  Archived months: [feb2014] [apr2014]

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