Beginners - October 2010 (Page 14)

test of equality
 
Hi everyone. In a test of equality, what's the difference between if("Sentence"==$sentenceString) and if($sentenceString=="Sentence")? I thought the order d...
[1 reply] : This is a C++ forum. What language are you using? (by Duthomhas)
Problem with average[updated]
 
-edit-
[3 replies] Last: I don't think you can have variable arrays like that. The size of the ... (by pabloist)
How can I convert this to use Functions?
 
So, I made a calculator using a switch and do/while loops..but now I want to convert it to use Functions and I'm kind of confused on exactly HOW to do this.. ...
[1 reply] : Heres what the function would look like to get the number from user ... (by DrolArumil)
Cmake question
 
Hi All, I have a problem with cache variables in cmake. I want to check the combiler for a certain flag -C99 flag. So, I used the following statement CHE...
[3 replies] Last: Any help about this issue please? Thanks (by zarzor2010)
Looping and text function
 
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs ) { //Value of total experi...
[3 replies] Last: That you will learn when you get into error handling, but it is simple... (by nickburress2k2)
I have an iostream open problem
 
Hi people i'm a newbie here but i hope to be here a while. I've just finished the tutorial book on C++ and i'm really getting a taste for it i think...Anyway...
[2 replies] Last: So basicly borland 4.5 is Old = Crap lol..I've downloaded Code::Blocks... (by closed account 2wC9GNh0)
How can solve this !!
 
Write a program that solve an algebraic equation of the second degree ax2+ bx+c=0. Hint: 1- You may need to use the built-in math library. 2- Your program...
[5 replies] Last: Sorry for that :/ But i'm a beginner too. I did this program yest... (by Granada)
Encrypt and Decrypt
 
My programs encrypts 4digits and they are replaced with the result of adding 7 to the digit and getting the remainder after dividing the new value with 0. the 1...
[2 replies] Last: if you add 7 to a digit, the reverse would be to subtract 7. But sinc... (by Disch)
Cannot figure out this Error
 
I know this is stupid.. im trying to get a switch statement to work.. for learning purposes. #include <iostream> #include <string> using namespace std; ...
[3 replies] Last: ok.. (by Analyzer)
Syntax error in microsoft visual studio 2005 error c2059
 
Hello everyone, its my first year at university and its been 6 weeks since i have been studying C and C++. I have learnt the basics up till now like how to pri...
[1 reply] : You wrote . instead of , in scanf("%d".&a); (by hamsterman)
Button press
 
I am making game game that is simple but, i need some help something. How would i make it so if you press a certain button it will display a message like, if yo...
[3 replies] Last: It depends on what API you're using. See this: http://www.cplusplu... (by Disch)
fatal error in visual c++ 6.0
 
hello everyone, its my first year at university and its been 6 weeks since i have been studying C and C++. I have learnt the basics up till now like how to pri...
[3 replies] Last: Are you running the program while trying to compile? If so, don't. (by helios)
Command Login to Windows Form
 
hello, I am a very new programmer interested in learning C++. Instead of a background story, ill jump right into my question; My program compiles okay, a...
[4 replies] Last: ---------------------------------------- I didnt know that cl... (by reality)
by ozzyb1
String operator
 
I'm pretty new to c++, and am currently trying to pick my way through some code for a University project. I am struggling to find any reference material on t...
[4 replies] Last: Thank you so much! (by ozzyb1)
How can I convert std::string to LPCTSTR?
 
I have a std::string str, which may contain I18n characters in UTF-8 format. How can i convert it to a LPCTSTR? Do i have to using #ifdef UNICODE ...
[no replies]
by NcB
private access error
 
class x { private: int a ; public: int *ptr; . . . when i tried initiliaze a in constructor like ptr=a and use "a" in some function still i get p...
[4 replies] Last: sorry i didnt allocate memory for a i confused it another one.... ... (by NcB)
by shayak
question
 
how to perform the division operation between two numbers without using '\' operator but using only '+'and '-' operators
[2 replies] Last: just basic maths in there ;) seeing that 9 = 3*3 = 3+3+3 so just d... (by kaduuk)
by shiki
to find the output
 
i had problem to find the output..can someone of you help me what is the value of each variable after each statement is executed? #include<math.h> int ma...
[3 replies] Last: @reality: please don't spam... (this is exactly the same you posted ... (by kaduuk)
by Untrue
Automatic input?
 
Is it possible in C to code for an automatic input like if I enter the input 'A' I don't have to press the enter key to activate my input and it will automatica...
[5 replies] Last: besides, this forum wont help you. why? 'cuz its a c++ forum? The... (by kaduuk)
Memory Exhaustion?
 
An exercise in Stroupstrup's book is to write a program involving memory allocation with an infinite loop and let it run until it crashes. He says the crash wil...
[5 replies] Last: It's what's supposed to happen, yes. new throws a std::bad_alloc exc... (by filipe)
October 2010 Pages: 1... 1213141516... 42
  Archived months: [sep2010] [nov2010]

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