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

About some program
 
Hello, I am making a loop program in which I have to take input from a user and that input is basically an int value and i want it to be stored in an array....
[1 reply] : int num ={1,4,7,9,5,7}; (by Chriscpp)
Wrong answer!
 
I have to make a program for Uni to calculate the shipping cost starts with a £50 fee.. Each of the first 100 miles (included) cost £5.50.  Over 100 mi...
[4 replies] Last: Here is rev.2: I got rid of terminate and changed to exit chan... (by lukeyy33)
What is wrong with my code? There is an error at {. Its after else.
 
//Coin Toss. Coin Toss.cpp //Program designed to simulate coin tossing #include <iostream> #include <cstdlib> using namespace std; //To include std infron...
[5 replies] Last: On a side note a pseudo random number generator (PRNG) are really just... (by giblit)
Verify password and convert currency
 
I have a problem here.I was asked by my teacher to make a program to enter password and if password right I can change the curency. I only want to change from r...
[2 replies] Last: please give me an example because I don't know much about programmming (by Izzuddin)
trace code to predict outcome. Byref
 
So I have this code void testOne(int one, int &two) int main() { int num=10, prod=15; cout<<num<<""prod<<endl; testOne(num,prod); cout<<num<<""<<pr...
[3 replies] Last: In the final cout (before the return 0), you're displaying num and pro... (by AbstractionAnon)
Class Inheritance Issues? - Sorting Algorithms
 
Hi there, Just some background information, I've currently made sorting algorithms for heap sort, quick sort and bubble sort. They work perfectly fine when u...
[4 replies] Last: That does make more sense but it's an exercise and apparently it shou... (by cire)
by xray14
Dynamic arrays
 
i will implement a add a course function description of function is :system will allow the instructor to add a new course indicating its course id and course...
[6 replies] Last: using global variable is not allowed. I have tried but again I failed.... (by xray14)
help.. c++
 
#include<stdio.h> #include<stdlib.h> main() { float price,cost,discount; discount=(0.5); cost =(discount)*price; printf("pl...
[15 replies] Last: o.. i marked it..:-) #condor# (by abriella1)
by oktave
can't get code to output to a file
 
I have to make up a fucntion that passes an array of int and it's size then only prints out numbers above average from one file to another and i think i got it ...
[5 replies] Last: I mean the body of over_average() :) (by Fransje)
by helnow
staking rand alpha
 
Can someone show me how to stalk a random alpha letter in order in a minimum possible way.. and write the cases which the container can be stalked. for example...
[12 replies] Last: i do have understanding of the problem, but whenever i try to do the c... (by helnow)
Help with User defined functions
 
Hello! I am writing this code, and I every time I run question A, no matter what numbers I put in, I get "larger = 0. Do you think you all can help? Th...
[2 replies] Last: When I originally wrote the code, I used largest and smallest and I wa... (by thatdudebelski)
Loop Unrolling Multi-Dimesional Array
 
I am trying to unroll the inner i and j loops within this multi-dimensional array which spits out a block image. Unfortunately, the image does not match the col...
[3 replies] Last: We are up to the day of having computers with lots of clock cycles eve... (by J4ke)
Revisions
 
Hello, I need help with the revision/execution of some code below. Thanks! #include "stdafx.h" // Cipher.cpp : Defines the entry point for the c...
[no replies]
Connect 4 AI
 
my AI logic is to : 1 - play winning games 2 - defend winning games 3 - play games to make 3 blocks 4 - defend 3 blocks 5 - play games to make 2 blocks 6 - wors...
[7 replies] Last: you're right but I will do my best I'm making a new AI algorithm and w... (by LordAhmed)
Stopping a Loop Inside the Loop Inside a Loop
 
Hello. I have a program like so: for(;;) { if() { for() { if() { //here, break both for loops, how? } } } } T...
[7 replies] Last: no problem! if you have any more questions dont hesitate to ask! (by closed account Dy7SLyTq)
Keylogger Help
 
The code I have for this keylogger works and records all of the keystrokes fine. It creates log.txt and puts the keystrokes into it once the keylogger's session...
[1 reply] : do you want a legit key logger? because there are much more efficient ... (by closed account Dy7SLyTq)
Help with simple program :(
 
I'm trying to have the user input the product number and quantity of each product. It isn't t working right, I'm not sure what order to put everything. It only ...
[3 replies] Last: I've taken mt calculations out of my loop (just to see if it works) I ... (by BrookeP)
Help converting string to Char and Float
 
So I have to convert ("a499.9") into a char and a float while ignoring the a. I have the string stored in a buffer and found how to get the char, 4. But I don'...
[7 replies] Last: Ah! Yes sstream is the way to go thank you! (by Sabz333)
urgent help
 
i wanna to solve this problem 1->add apatient 2->delete apatient 3->alter patient data int text file person inherite from person class class person{ int ...
[1 reply] : i wanna to solve this problem First of all, i is uppercase. Second ... (by Chriscpp)
November 2013 Pages: 1... 2122232425... 46
  Archived months: [oct2013] [dec2013]

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