General C++ Programming - November 2013 (Page 27)

Minumum spanning tree
 
Hi guys.I have a homework about Minumum Spannning tree in the order that Prims's algorithm includes them starting from node G.Can you help me?? I am sorry .I ...
[12 replies] Last: Ah. I often refresh to make sure I am posting something useful, but la... (by Duthomhas)
Adding random numbers
 
I am designing a math program for kids. I want the program to produce 2 random numbers and check the sum of these numbers against the user's guess. I have the g...
[9 replies] Last: AeonFlux1212 gave you a really good anwser with 2 of the abilities of ... (by joseph8)
Exponential Power Function
 
This is my assignment, please look at my program and give me any tips? (I'm not quite sure I did it right). Main is supposed to be sending values to the power f...
[1 reply] : well your code looks complicated - you only need one loop something l... (by mik2718)
Cannot figure out how to call a binsearch function Help
 
I want to call in a binsearch that searches through my function for a value typed in by the user but im not to sure if my function is set up correctly and how t...
[no replies]
C++ / Win32 API
 
Recently I decided to start with some Win API and C++ (since C++ is the language I really love and enjoy) and I want to hear from you guys what do you think abo...
[9 replies] Last: wxWidgets is certainly underrated. The main advantage I see in Qt is Q... (by closed account S6k9GNh0)
2d array using txt file
 
so i have an assignment part as follows:- Complete the class CAI: Write the definitions of all the member functions, the constructors and the de-constructo...
[no replies]
How to add arrays/how to get the sum of two arrays
 
Basically on this assignment I must write program that inputs two positive integers of at most 100 digits and outputs the sum of the numbers into an array. The...
[2 replies] Last: Based on the title of the thread I assume you at least have the part d... (by closed account zA9T0pDG)
change switch loop to if
 
Trying to change this siwtch loop into an if. the problem is that I want to ´´break´´ after each switch but I couldn't work it out. tried with return; and r...
[2 replies] Last: I've not done any C++ in awhile, but that else shouldn't work or if it... (by closed account zA9T0pDG)
need some better ideas urgently!
 
i am a moderate programmer and my programming style is to be user-friendly. in next 3-4 days i want to complete any one good project to show in school.so, i jus...
[5 replies] Last: Try Tweaking things for ubuntu or fedora. like change the normal way o... (by Piyush Laad)
Code help: Blackjack
 
I get so many errors and I have declaired things like int iCard ={0}. and the i,j,m,l,k are not defined why I can see where I defined it. but then it tells me ...
[4 replies] Last: yes thank you (by stardust2552)
loop randomly
 
Is it possible to loop randomly for example for ( int i = 0; i<= 6 ; i++ ) I don't want i to acsend from 0 to 6 but i want it to get all numbers randomly ...
[4 replies] Last: @lordahmed then you should have asked that directly.... (by Rocketx100)
by unik
Why doesn't my program work?
 
The goal is to execute this but my program doesn't execute the results. "Here is your answer: The future value of 50 weekly payments of $25.55 at 2.375% is ...
[1 reply] : Your Compute_FV and Report_FV functions aren't being called anywh... (by MikeyBoy)
by PAARU
Deterministic Finite Automata implementation
 
Can anyone implement a determinisitic finite automata by reading from a text file that looks like this: q0 q1 q2 q3 (states) a b (alphabets) q0 (start state) q...
[1 reply] : Yes. (by helios)
Target heart rate
 
Your Target Heart Rate is the rate at which your heart should beat to get the maximum benefit from aerobic exercise. This rate is generally agreed to be 60 to 7...
[7 replies] Last: You're welcome. Glad it worked out. (by MikeyBoy)
by print
segmentation fault
 
hi all.. i was stuck at this problem for quite some time. i do not know if my program will produce a correct output or not, because i got segmentation fault.. a...
[6 replies] Last: i find the problem when i ask my friend, now i am trying to finish it.... (by print)
Letter Frequency count
 
Hi, I am new to c++. I am writing a program that reads in a text file and gives a count of how many times each letter appeared in the file. I got it to read the...
[1 reply] : Hi! At first, you'd better format your code with [ code ] tags (see b... (by rodiongork)
by QataJo
Initalizing???
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void DisplayMenu(); void Addition(); void Subtraction(); int main() { ...
[3 replies] Last: Please use code tags http://www.cplusplus.com/articles/z13hAqkS/ The... (by Yanson)
ifstream selectively read in information
 
If I have a data file.dat like this, for example: ... other information ... physics: 4,5,6,7 ... line: (4,2), (2,4) line: (1,2), (2,3) ... .....
[3 replies] Last: > every data in file.dat is useful, they need to be read into differen... (by JLBorges)
by unik
I need help please!
 
I'm stuck and dont know how to turn FV = P ((r+1)^N-1)(r+1)/r into c++ code. where, r = R/5200, the decimal equivalent of the weekly interest rate. "Write...
[3 replies] Last: double FV = /*expression*/; return FV; inside Compute_FV(). Or just... (by helios)
Gratuity Calculator
 
Hi all Im supposed to create a program that designs a Tips class that calculates the gratuity on a restaurant meal. Its only class member variable, taxRate, sho...
[1 reply] : tip.computeTip(100, 20); should be tip.computeTips(100, 20); ... (by Yanson)
November 2013 Pages: 1... 2526272829... 46
  Archived months: [oct2013] [dec2013]

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