Beginners - July 2011 (Page 28)

How to print a letter of string second by second
 
Sorry for unclear topic. The thing what i'm trying to do is, i have a sentence and i want to print it but after 1st letter, the 2nd letter must wait for a 1 sec...
[4 replies] Last: thank you very much modoran (by Timur Aykut YILDIRIM)
by chipp
some_type& and some_type*
 
what's the difference between both of them?
[9 replies] Last: This answers most of the questions posed in this thread, albeit in the... (by jsmith)
Problem with strcmp
 
Hi, I'm new to C++ programming and am trying to create a simple AI conversation program which asks a number of questions and replies. I have the following co...
[5 replies] Last: This is the correct form: cout << "What is your favourite colour?" <... (by modoran)
Some Quick Questions
 
1. Why range of float constants is much more than integer constants ? 2. Can i write an entire C program in a single line including all preprocessors. If yes, ...
[6 replies] Last: ah. Thanks very much all for clarifying the doubts. :) (by LegendXeon)
tutorial test problem
 
#include <string> #include <iostream> using namespace std; int main () { cout << "Please enter your first name and age\n"; string first_name; ...
[3 replies] Last: Re-read the section on variables and data types. Specifically the part... (by firedraco)
What can i do here?
 
#include<iostream> #include<fstream> using namespace std; int zarat(int,int); int zarat(int z1,int z2){ int a,z1,z2; char zarlar; ...
[3 replies] Last: thank u both i solved the problem and learn one more thing (by closed account 9wX36Up4)
restarting a test program from beginning
 
OK very new to C++ and i know i will learn this later. I take a test and run it and then tinker with it to try to add more. So i was wondering (to save some tim...
[2 replies] Last: thanks (by metulburr)
window box input are pure black until i move the window around
 
every time i run a test program, my inputs are a pure black box not allowing me to see what i typed until i grab the window and move it around. Is there any way...
[1 reply] : Is this an IDE problem or a C++ needed correction? (by metulburr)
Trouble with for loops
 
A C++ begginer here i was asked to write a prog to generate the reverse of a number using for loops and here is the code int num,rev=0,digit; cout<<"enter...
[1 reply] : You cout<<rew inside the for loop. On the first cycle rev is 3, on the... (by hamsterman)
What is the Difference between "int" and "float"
 
Please Explain I'm completely new. Also I heard there are six of these commands. Like one is "int" and one is "float" , there are about 4 more. Where can I fin...
[9 replies] Last: some people prefer video tutorials to books. you can find many; http:/... (by muratagenc)
problem with test
 
line 12 error: empty character constant #include <string> #include <iostream> using namespace std; int main () { cout << "Please enter your first...
[7 replies] Last: ok thanks i originally thought whitespace didnt matter at all is what ... (by metulburr)
Tips and advices are very welcome...
 
Hey guys. I'm not new in programming and I've been doing it for about a year now. I just want to know if you have any tips or advises for me so I could improve ...
[8 replies] Last: my experience similar to yours. I think, knowing how to code, all tha... (by muratagenc)
problem running test program any help?
 
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main() { cout.setf(cout.boolalpha); int nArg1; cout << "Input v...
[2 replies] Last: oh woops sorry... figured it out forgot } (by metulburr)
Capturing an "integer" with too many digits
 
I'm working on a program that handles "integers" that are too long to be legal integers in C++. I've got most of it handled, but in testing, I discovered that ...
[3 replies] Last: If you pass a large number as an integer, it will overflow. I'd do wha... (by toexii)
floor()
 
Hi everybody, Few moments ago I have stopped using DevCpp and started with VC++ 2005. I had this line: cout<<" "<<Player.EN()+round(Player.ENDUR()/10)...
[8 replies] Last: :D (by julof26)
Sorting algorithms
 
Alright so I've been doin some research on sorting algorithms and would like some opinions from real people. What is, in your opinion, the best sorting algorith...
[6 replies] Last: Bogosort Quantum Bogosort is where it's at! (by firedraco)
using namespace std; vs using std::x
 
Hey, so I keep seeing people using the using namespace std; deal. I personally just do the using::std x structure. For example, I see programs started like: ...
[8 replies] Last: Sorry for not being active in here! I forgot to subscribe to this :/ S... (by ResidentBiscuit)
deceleration shadows parameter
 
when i run the program i get "error: decleration of "double BA" shadows a parameter" i havent really learned hoe to use functions yet im kinda winging it from...
[1 reply] : Line 36 declares a local variable inside the function that has the sam... (by jsmith)
Arrays, print multiple user input?
 
I'm trying to prompt the use to enter up to ten integers, then print them back out on the screen. If the user enters -1, the program should only print what the...
[1 reply] : This loop: for ( int i = 0; i < maxValues; i++) cout << maxMinValu... (by jsmith)
Problem with tolower() and comparing strings?
 
I'm trying to get a library working for a project for class. All it is supposed to do is compare two strings and ignore case. We just started learning about lib...
[3 replies] Last: You can use the transform() function to change a whole string to lower... (by ResidentBiscuit)
July 2011 Pages: 1... 2627282930... 54
  Archived months: [jun2011] [aug2011]

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