General C++ Programming - February 2014 (Page 14)

by leo255
How do you take the (mathematical) inverse of an array
 
Hello, I need to take an array, and get the inverse of it (basically, just how you would take an inverse of a function in math). I'm kind of stumped. I nee...
[10 replies] Last: Yep. No problem. Glad I could help. (by a null byte)
Need help with recursive program.
 
Hello I need help with a Recursive program that I am writing for my C++ class at the Edmonds community college. Mostly I cannot understand what my professor is ...
[no replies]
What is the property manager?
 
I'm using VS c++ 2013. Where can I find the property manager, and property sheets?
[no replies]
Inserting Multiple Types Into Ordered Linked List
 
Hey everyone, so I'm having an issue or just not sure where to start. I have this program that creates a list then it will read the data from a file and store i...
[no replies]
by MST
fill out matrix
 
I have 4 by 4 matrix (just in case) and I try to make the other matrix which is the 16 by 16(the same number of element in matrix 4 by 4) I want to fill the ...
[no replies]
by EdFab
Question About std::cin
 
Here's the program. Basically it prompts the user to enter a sentence and uses std::cin to input it. It then displays the sentence as it was entered originally ...
[no replies]
by Ace356
How to implement symbolic constants to factor out if else statements?
 
My assignment is to create a simple stock broker program that ask the user how much they are willing to invest and ask what company they would like to invest in...
[4 replies] Last: For example.... current statement cout << " Citigroup at $ 49.52 per... (by wildblue)
Dice experiment
 
So, I'm trying to make a program that generates a random number between 1 and 36 (the number of combinations possible with dice) and using the real life odds, d...
[10 replies] Last: Ohhhhhh now I get the seeding part... thank you so much I just couldn'... (by Superslash9)
sets
 
I am totally lost on how to do this. Could someone give me some input? For the program, the input file will be limited to integers (int). The purpose of th...
[3 replies] Last: I've formatted your code so I can see it. #include<iostream> #include... (by kbw)
Program crash writing to binary file
 
cant write to binary file #include <stdio.h> #include <stdlib.h> typedef struct { int number; } something; void main() { int numbers ={1,2,3,4,5,6,...
[2 replies] Last: Editing out your topic after it's solved is a jerk move, you should re... (by Avilius)
What can I make with C++?
 
So, I have been doing C++ for about a year now, and I do know what is made with C++. But, I just need advice. Now that I have learned all the basics (most, at l...
[6 replies] Last: I have been stuck on writing pure text based (or faceless background) ... (by JLBorges)
Logic issue with program
 
#include <iostream> #include <cmath> using namespace std; //prototypes for all separate functions int chooseFunc(int); int chooseMethod(int); int numRe...
[1 reply] : Inside your rectAlg() function, you haven't initialised start , en... (by MikeyBoy)
Error in classic Bank Teller simulation program? (Had to write original Queue & QueueNode classes)
 
Hi guys, I'll forewarn you, it is my first time posting on this site so If I do not adhere to proper etiquette, let me know so I can make future adjustments...
[1 reply] : You haven't defined a default constructor for Queue . Because you've... (by MikeyBoy)
by tommyo
Function to change char array string to lower case
 
This code ran well until i added in the ToLower function which is supposed to convert the char array string to lower case (based off ascii strategy -32). Can so...
[1 reply] : you need to pass either a reference or a pointer to the function like ... (by tejashs)
Is it worth it? Tech Overload
 
Is it worth it to wrap WINAPI, Direct X, SFML, PHP, C#, Python, Perl, SQL, CSS, JavaScript, HTML, JQuery, ASP.net or learn all of these libraries? I know I how ...
[7 replies] Last: Thanks people. I'm most interested in software, its just daunting feel... (by DeXecipher)
handling and comparing large number initially in string format
 
Hi guys, suppose i have a very large number stored as a string, say std::string str = "1000000000000000000000000000000000001"; and i use std::string...
[4 replies] Last: Thanks for the input :) (by tejashs)
by leo255
Need to make a function that checks if an array is a permutation
 
Hello all, I need to create a function with the following prototype: bool isPermutation( const unsigned a , unsigned elements ); unsigned a = {3, 0, 2, 1}...
[4 replies] Last: how would I make sure I'm NOT returning true or false after only one ... (by kbw)
Need help with creating a function in a class
 
Hello, I am a computer science student. I am currently working on a "bag" class which is sort of a common sense answer to creating a random class with differenc...
[1 reply] : Please provide more info on what you problem is. In any event, your un... (by jmadsen)
by eddhrz
im having trouble with the function "double calcprofit(double amount2)"
 
#include <iostream> #include <string> #define profit .80 #define NR .90 #define RO .65 #define SN .40 #define SO .20 using namespace std; //proto...
[1 reply] : First off surround the text of code with {code} and {/code} except use... (by jmadsen)
Coloring a Map
 
I have this assignment where I have a map of counties and I have to color each county different from its neighbors. I have the code that can compile, but throw...
[13 replies] Last: I actually figured the issue with that out. I'm now trying to get Min... (by crimsonzero2)
February 2014 Pages: 1... 1213141516... 33
  Archived months: [jan2014] [mar2014]

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