Beginners - November 2009 (Page 25)

by rana33
about scanf
 
1)scanf("%d",&i); and 2)scanf("%d ",&i) in 2 no. example dere r a space where 1 has not. what is the defference between them?
[no replies]
Looking for numbers within a certain range eg 1 - 10
 
Hi guys Does anybody know how to tell a c++ program to look for a number between 1-10 in an array. e.g if ( i == 1- 10) I know that would not ...
[2 replies] Last: Thank you Pascale :) It is for an array, ive already got the loop,... (by iamthefear)
Templates
 
What does this line of code mean? Int Holder.first=10; I am confused, how is a string taking a integer value? Is it a variable taking a vaule? I am read...
[4 replies] Last: Thanks, that helps alot. (QWERTYman). Oh, here's the full source co... (by ArcherSam)
input output of special characters
 
I am trying to get a simple console application together that can help my son practice his french verbes. Everything works fine but when typing the accents, a d...
[4 replies] Last: It works now but unfortunately it still shows the same symbol I hav... (by Pascale)
Fibonacci Numbers
 
#include <iostream> using namespace std; // The function for finding the Fibonacci number int fib(int); int main() { // Prompt the user to enter an...
[1 reply] : You can make a global variable initialized to 0 and make it increasing... (by Bazzy)
convert string to char
 
hi, i got a string str which contains md5 values. e.g str = "0589eb4301a8b5438553488adfa23961" i need to convert this value to decimal so im doing this:...
[2 replies] Last: To get a C string ( char* ) you cave str.c_str() but it wont work ... (by Bazzy)
For Loop Function
 
int a = 3; int b = 7; int num = 2; for (int c = a; c >= b; c--) num += c; cout << num << endl; Line 4: If 3 is assigned to int c, how can 3 be...
[6 replies] Last: .....there is no loop going on since 3 >= 7 is a false statement he... (by loveless)
Do while
 
int main() { int num = 2; do { num *= 2; }while (num < 48); cout << num << endl; } I can't solve the abv code. Care to guide me?...
[4 replies] Last: woops :P *faceplants keyboard* (by gcampton)
convert time_t to string and vice versa
 
hi, how can i convert time_t to string format. my time_t result is unix timestamp. i have to convert to string format. i tried (string)timestamp but it could...
[1 reply] : hi guys, i managed to resolve it. tks (by nuttynibbles)
pass by reference
 
hello everyone..i actually have a doubt in C programming but since this part of the code is similar to C++, im posting it here in this forum. any form of help ...
[3 replies] Last: Ah sorry... I misread the question. I don't really know C much but i'd... (by bluezor)
November 2009 Pages: 1... 232425
  Archived months: [oct2009] [dec2009]

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