General C++ Programming (Page 4)

Help
 
Hello Looking for some help to solve a problem I can't figure out. For example I'm given a command (...
[no replies]
Parameters
 
Guys help!! Im fairly new to the c++ game and was wondering if someone could explain parameters to ...
[1 reply] : Have you checked out the Functions page in the tutorial on this site? ... (by wildblue)
function output 2
 
Would myint be 40 and my float be 4.8? Come up with anything different? Consider the function de...
[1 reply] : Hi, Why don't you compile it and find out for yourself? Should only ... (by TheIdeasMan)
Adding two arrays, beginner program!
 
// The program below should add two matrices using function. // I have problem in the third functi...
[2 replies] Last: Thanks for your help, but I'm sorry I can't clearly understand your re... (by aslan10)
Function output
 
The output I got was 1, 14, 9 Anybody get a different answer from this problem? Given the functi...
[2 replies] Last: Keep in mind that Twist(t, s); doesn't change the value of t , sinc... (by long double main)
How do I ouput strings based on input when branching with if
 
How do I output strings when branching with if ? For example with numbers you can do this i...
[2 replies] Last: Thanks very much LB, I really appreciate the help and fast response... (by Cbasic88)
Big numbers in Arrays
 
i have to create three arrays. my first array is going to be a 20 digit number if not less. this als...
[10 replies] Last: Arrays are always passed by reference, so you only need to pass them a... (by Duoas)
int to fixed size char array
 
Hello, I'm writting program and need to convert int ot char array without \0 simbol. I have tryed s...
[2 replies] Last: I got it. Thank you (by gedinskas)
how can i cin.ignore() only a selected variable?
 
how can i stop a loop if continue == 'n' || coninue == 'N' i need to keep my continue cha...
[4 replies] Last: The ignore should occur after line 43. The condition on line 46 is no... (by cire)
Federal Tax Calculator Program
 
I am doing an assignment that is to calculate the federal tax based on the users input. I am not ent...
[7 replies] Last: If the person decides to contribute to the pension fund, you're calcul... (by wildblue)
Error when comparing special charracters like "č"
 
Hello, how can I compare strings, so the function will return special characters, such as "č" t...
[8 replies] Last: great! thanks, works like a charm now (by mekkatorqu)
Getting a value from object passing it to an array
 
I am writing a program for a poker game.. I created a class to get cards and create deck.. the probl...
[1 reply] : Line 20: toString is declared as returning nothing (void). Line 49: ... (by AbstractionAnon)
by bara1
working with Excel file in C++
 
I have an excel file (.csv) like that: Student ID | Average mark 1 | 8 2 |...
[no replies]
Dynamic memory allocation in a class
 
Hello, I'm having problems with this code: #include <iostream> using namespace std; cl...
[2 replies] Last: There is a rule known as the "rule of 3". It says that if you need to... (by Disch)
How to redeffine operator ->
 
How i have to redefine the operator -> on my own class? Thanks in advance
[4 replies] Last: Yes sure, copy & paste error x.. Anyway Thank you! (by Franconet)
by birbal
How to assign char array as user define string object
 
STRING s1 = “FOOBAR” Here STRING is a user defined class. how to assign a constant char array...
[2 replies] Last: SomeType SomeName = SomeExpression; //initialization -> constructor c... (by LB)
Writing a derived class from a given base class
 
C++ Programming Topic Using the following Counter class as your Base class, explain (and show) ho...
[3 replies] Last: Step 1. Give up our time to do people's homework for free. Step 2. ? ... (by MikeyBoy)
about delete keyword
 
Hello , I just wonder how I can delete a parameter in a function . As below ; int *buildTrail(in...
[4 replies] Last: std::vector<int> buildTrail(int antIndex, int start, double *pheromon... (by ne555)
by Subo93
Files
 
In labsht.txt I have save 1d222bb433gf445dfd448dfdfdf4 which I input using this program #includ...
[2 replies] Last: I don't want to try and read that... Sorry. Also this is the lounge so... (by SatsumaBenji)
Converting string to integer array in C++
 
For Example, it the entered string is: 0324152397 I want it to get stored in an array like- ......
[2 replies] Last: #include <iostream> #include <string> #include <vector> using names... (by Duoas)
Pages: 123456... 61
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.