Beginners - October 2011 (Page 40)

A function that displays elements of a vector
 
I need to write a function that takes in a vector of strings and a vector of integer indices and display just those elements in the vector of strings at the giv...
[3 replies] Last: You really should try to compile the stuff you have and the stuff peop... (by Duthomhas)
Changing Color Of Text
 
Hello, How do you change the color of input in a console application, and how do you change the color of output? Any help would be appreciated.
[5 replies] Last: Depends on how complicated your application is. For heavy stuff, use ... (by Duthomhas)
a little help please
 
I am having some trouble with a loop program if anyone could give me some pointers i would be greatly appreciative thanks. #include <iostream> #include <iom...
[7 replies] Last: ok thanks now i just have to figure out the proper way to word that hm... (by traviswake)
by homsta
What am I doing wrong with istream?
 
I've pretty much figured everything out except when trying to overload the '>>'. I seem to be able to get it to cin both my variable but when I want to see what...
[2 replies] Last: Correct. Without the &, the operator is actually modifying a copy ... (by Disch)
Help me out?
 
Okay I'm in quite a pickle.. I believe the program almost done however I quite know what put it the lines I skipped. I'll leave what my issues are how they are ...
[6 replies] Last: You still haven't asked a question. What do you need help with? (by ascii)
stack overflow
 
hi there, Im currently writing a C++ console program, which goes like: /========================================================= #include <string.h> #i...
[4 replies] Last: amazingly powerful, incredibly wonderful:-) i thought i ned 2 take mor... (by superjack)
some loop help
 
So I am trying to write a program where you sell tickets. For every 10 tickets you sell the price decreases 50 cents. Right now I have a good start but my loo...
[7 replies] Last: Create a function that finds the max. I'll get you started... float m... (by novablows)
Code Help
 
Fixed
[2 replies] Last: Yep, Wow that's it. Stupid me. I appreciate it! (by Golden0907)
Console Help..
 
Hello. I need help on making my text look better. When I do cout, and the lines are to big for the console screen, it cuts words off. Like.. cout << "Hel...
[2 replies] Last: Resize your console. Right click your console when it pops up and GoT... (by mbentley1989)
by Bradd
Stuck on this Code... Help please!
 
#include <iostream> #include <string> #include <fstream> #include <cmath> using namespace std; int main () { int creamer,milk,soda,water,cookies,chips,cr...
[13 replies] Last: Ignore it. It's a precompiled header thing that VS puts there if you ... (by Disch)
How?
 
How do you define an overloading operator: operator ++? And if possible a simple code would be appreciated. Thanks in advance
[2 replies] Last: I do not see an example of operator++ Arthar http://www.cs.calt... (by detroit)
Consolidation help
 
Hi all, I've only been doing this a few days. I decided to try the program that asks you to input your score on a programming test and then returns your g...
[12 replies] Last: I'll work on it now and I'll let you know if it works. ok so you can... (by novablows)
by mj1709
name printing.
 
#include<conio.h> #include<stdio.h> main() { char a ; int mi,endC,bend,i=0,j=0; clrscr(); printf("enter the NAME\n"); scanf("%[ abcdefghijklmnopqrstuvw...
[1 reply] : this is a C++ forum bro, head over to a C forum for help ;) (by xander333)
by askari
c++ calculator programme
 
Hey all..Im a beginner in c++ programming.. I have problem in my program that ive written..i would we very thankful if you point out my mistakes cuz programme i...
[2 replies] Last: Because you forgot to add break at the end of your switch statement. (by ThangDo)
algorithm
 
please i need help in 1. writing an algorithm to find the factorial of 10 2. enumerate the operators and operation to represent the following i. comparism ...
[1 reply] : #include <iostream> int Ffactorial(int iValue); int main() { std... (by fashdee)
by dznguy
fstream and getline
 
so im reading from a .txt and am having trouble figuring out how do i make it so that fin >> x or getline(fin,x) would read in certain part of the text text...
[2 replies] Last: The getline () function allows you to terminate on something other th... (by Duthomhas)
Help: Error C2664 during compiling
 
Hi all, I want to save my algorithm result to a file so that the data can be used in future.Unfortunately i failed to compile my code and hope you guys can help...
[7 replies] Last: szBuf is a C string containing the error text. You can cout it to... (by Moooce)
by Maryyy
Printing an array of chars.
 
Consider the following code: char c ="hello"; cout << c; I know that the name of an array of chars is a pointer. So, why does "cout" print the content of...
[1 reply] : operator<<() has an overload that takes an output stream (e.g. std::co... (by helios)
header file contents
 
I have this header file and it's filled with this #ifndef _DSEXCEPTIONS_H_ #define _DSEXCEPTIONS_H_ class Underflow { }; ...
[2 replies] Last: thank you for your help! much appreciated! (by liondancer)
by Mr Hat
Array of bitsets
 
Good day, I am working on DES encryption (it's a school project), and I need to use an array of bitsets. How do I go about doing this? I've tried: bitset...
[3 replies] Last: Try passing it by reference. (by closed account 1vRz3TCk)
October 2011 Pages: 1... 3839404142... 59
  Archived months: [sep2011] [nov2011]

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