General C++ Programming - February 2015 (Page 17)

by hiccup
Confused with loops
 
I'm having trouble getting the program to calculate the percentage of times it flipped either heads versus tails. I realize what I currently have doesn't work b...
[2 replies] Last: Thanks! (by hiccup)
converting to upper case
 
Hi,i am unsure how to write a function which modifies the content of the 1D character array and puts all of the letter it contains into uppercase. the following...
[2 replies] Last: Alternately, as a better option, you could have a look at something li... (by TwilightSpectre)
1
 
abc
[3 replies] Last: how would i go about deleting one of the posts. -thanks. (by closed account LvDzwA7f)
n/a
 
n/a
[2 replies] Last: No, you see I wasn't asking for you to do my homework. I was asking wh... (by tjaduffy)
Help with Nested Structure
 
I was wondering how is the proper way to do the calculations using a nested structure. I was asked to write a program that contained a nested structure and calc...
[no replies]
by Kevint
Yes or No loop
 
In class we are doing a problem where we ask the height in inches, and display the height it feet an inches. Then we have to ask if they would like to enter ano...
[2 replies] Last: Thank you so much! i understand what im doing a little more now. (by Kevint)
counting the number of vowels
 
Hi,i am unsure how to write a function which modifies the content of the 1D character array and counts the number of the vowels. the following is the array that...
[3 replies] Last: #include<iostream> #include<algorithm> #include<vector> using namespa... (by sujitnag)
increment member function in Date class
 
Hey everyone I have a class I am building called date and I've built all my functions to run and done all the necessary error checking in each function. However...
[2 replies] Last: oh wow Thank you so much! It worked so easily and it was so simple to ... (by UGAman22)
fseek() problems!
 
Hello, i wrote a little program with fseek. It works good till it reaches the first fseek(). Then it crashes and stops responding. Its really weird. My code: ...
[2 replies] Last: That works! Thanks! (by hakeris1010)
by roswel
right shift a packBCD string
 
Hi, I have this BCD string: 890123...78FFF and need to right shift by say 3 nibbles, resulting in: FFF890123...78 length is fixed, number of 'f' nibbles ar...
[3 replies] Last: we're nibble shifting, so I wonder if above the code will work, which ... (by roswel)
const
 
what are the diff between 1)const return_type func(){} 2) return_type func()const{} as far I understand 1st one return type is const like const int etc. ...
[4 replies] Last: thankx; actually I overlook the return type; so it make me difficult t... (by sujitnag)
Can you hold a vector of pointers in the same class as the instances of those objects?
 
Using SFML, I had a Board class which held multiple vectors of all of my object types in the game, and then it also held a vector of pointers to the memory addr...
[2 replies] Last: This vector of pointers is going to be both a maintenance nightmare an... (by JLBorges)
little addition to my program
 
Im still new to programing so i need a little help first this is my program i want to create a new function that can print the informations written in the fi...
[no replies]
by Sobo
Unusal Subtraction
 
please explain why this prints 3 instead of 12 int ptr = {1,2,23,6,5,6}; printf("%d",&ptr -&ptr );
[4 replies] Last: To get the distance in bytes you must multiply theresult by sizeof(T),... (by S G H)
LAB PROGRAMS QUESTION.
 
1. Write a c++ program to create a vector of integers. copy the vector contents into list, sort the contents, then copy selected items into another vector(like ...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
c++ programs to be solved. ( ASAP)
 
Write a c++ program to custom exception handling. i. implement a function to compute factorial of a given no. ii. create a class " invaliddataexception" t...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
what are these cin.get and cin.getline used for?
 
Please help me out
[1 reply] : cin is an object of type istream, i.e. an instance of class istream. ... (by tipaye)
by Maurya
pass by reference using pointer.........need help
 
//program to form a header file /* using pass by reference in pointer */ #include <iostream> #include<math.h> using namespace std; double getAcorr(double ...
[14 replies] Last: how can i pass a pointer array to function and call it back to main f... (by keskiverto)
Not able to write jpegs to file
 
I have written a tar program and now I can take files add them to a tarfile and extact them into another directory. The problem is that it doesn't work with jpe...
[3 replies] Last: Perhaps you should get it working the way it was intended to work befo... (by kbw)
by kadi
library declaration
 
i have two problems * in recursion and classes i found out that we can use things without declaring and defining them them: -recursion we use the function w...
[1 reply] : i have two problems Okay. in recursion and classes i found out th... (by shamieh)
February 2015 Pages: 1... 1516171819... 26
  Archived months: [jan2015] [mar2015]

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