General C++ Programming - December 2016 (Page 8)

Nested Loop (Making A Diamond)
 
Hello, Please take a look at my code and let me know how I can make my code more efficient or any tips you would like to add. Thanks in advance. The objec...
[8 replies] Last: If you enter a reply, or go back and edit your posts, you will see to... (by HelpMeWCpp)
Compounding Interest Program
 
Good morning. I am working on a program to calculate the interest of a CD. The program will compile however, I can't get the correct answer. I believe the p...
[1 reply] : line 10 - change months to double from int as there'll be some divisio... (by gunnerfunner)
void function
 
Write a void function that accepts three parameters, first two pass­by­value, whereas, third is pass­by reference. The function should add first and secon...
[1 reply] : #include <iostream> template <typename T> void addition (const T a,... (by gunnerfunner)
Stop conditionally std::sort
 
I want to ask : exist a way to stop (interrupt) a sorting process through std::sort given a comparation function ? Inside comparation function exist heavy calcu...
[7 replies] Last: Thanks for both. What JLBorges said have sense. gunnerfunner thanks, b... (by danjiun)
Blinking text with System ("CLS")
 
Hi everybody! i am doing a simple C++ program using Dev-C++ in which i want to display a blinking text. i had no idea about it so i went to the net and got th...
[1 reply] : the blinking code starts here : while (true) { if (blink) ... (by zakaryaalsalahi)
isalpha function inside boolean function help
 
Hi, My program won't seem to run with the isalpha function inside the boolean function, wondering if anybody could help. //code #include<iostream> #incl...
[2 replies] Last: Testing for true or false like this if (isalpha(punctuation... (by Chervil)
Passing a 2d array into a function?
 
Basically I am wondering how its possible to pass an array through a function so that its values can be changed via another function without using global variab...
[3 replies] Last: Statically declared 2D array: const int COLUMNS{ 3 }; void print_a... (by integralfx)
FILE reading. How to?
 
I'm currently attempting to read a file from my resource area in visual studios. I am unsure as to how to even begin to enter the file and access the data withi...
[2 replies] Last: OP: you need to set up a struct for a student, something like: struct... (by gunnerfunner)
by nlstmn
copy integers from linked list to new array
 
how to copy found integers from linked list to new array?
[2 replies] Last: Does it has to be an array. Cant be a dynamic size vector? Do you wan... (by SalDeFrutas)
by ee293
c++ operator overloads matrix
 
I tried to do it using proxy class, but I need to solve the assignment without proxy. Here is the code. I've been helped by some here but I'm pretty sure it is...
[1 reply] : you can use std::vector<std::vector<int> > to replace int **, and you ... (by LukeShen)
Converting string to integer.
 
Hello so i posted another forum earlier but I decided to change it and ended up making this. How can i convert the string into int? line 38. #include <iostre...
[6 replies] Last: Thank you for the assistance LukeShen. Me and the group I'm in have be... (by PulsarNova)
erase any non numeric characters from an input
 
How do i erase a certain type of character from a string input? Thanks
[1 reply] : #include <iostream> #include <string> #include <algorithm> auto pred... (by xismn)
inputting data into vectors and outputting them into a text file
 
Hi everyone, Any assistance on my nearly finished program for one of my assignments would be great. Your program should read sales values from a file called ‘...
[5 replies] Last: Try printing out the value of salesrecord.size() That should tell y... (by Chervil)
How to call a MATlab function from VC++?
 
Hi, I have written my main code in VC++ and I want to call a MATlab function from this VC++ code. Does anybody know how to do that? I don't want to rewrit...
[4 replies] Last: The first link I provided follows an example downloaded with MATlab. A... (by edge6768)
Math tutor
 
Problem: Write a C++ program that uses a single DO…WHILE loop structure to create a math tutor for young students Display a menu offering the user the optio...
[6 replies] Last: This seems to be working fine, what was your problem? (by TheMaster)
by scilla
bar code generator
 
hello I have this project for school. I need to write some code that will generate barcode according to European Article Number 13. the solution is suppos...
[no replies]
by nlstmn
sorting k integers from linked list
 
how to sort k integers which I found from the linked list?
[1 reply] : What do you mean by "found"? If you do look at http://www.cplusplus.c... (by keskiverto)
by cppppc
Please i need orientation in which lib to use for Graphics??
 
Hello to all! I have a project to do using linked lists ( did not decide yet what linked list to use yet) then I need to represent it with graphics, what is be...
[1 reply] : Are you sure that the program has to draw something? By your descript... (by keskiverto)
by Dkob1
Amortized Efficiency
 
Design tradeoffs; which programming applications should use linked lists, which should use dynamic vectors, and why?
[2 replies] Last: Thanks! (by Dkob1)
Determining the difference between the actual percentages of occurrences and the true probabilistic values.
 
so far all i gotten was to show how many times it occurred but some of them are coming back in the thousands or the millions when the array was set to 100 times...
[2 replies] Last: Note: that array can hold 100 elements, but only the first 13 are need... (by keskiverto)
December 2016 Pages: 1... 678910... 18
  Archived months: [nov2016] [jan2017]

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