Beginners - November 2009 (Page 5)

Insane ~ Simple Arithmatic Q
 
Sorry to ask this - it is probably a stupid question: Why does: (e3*p + e0*q - e1*r)/2 return a float > 0 and (1/2)*(e3*p + e0*q - e1*r) return 0 ...
[2 replies] Last: Haha wow that is amazing! Gotta say I'm not a fan of that lol I just t... (by NickPaul)
Beginer
 
I wrote this: /* Kalkulator s passwordom */ #include <iostream> #include <string> using namespace std; int main() { string password = "idioti12"; c...
[8 replies] Last: thanks alot! its working. (by closed account 2E0XoG1T)
by robezy
expected constructor, destructor, or type conversion before ‘*’ token
 
Could you help me with this error? Thanks. class Stack { private: struct Element { ...
[4 replies] Last: thanks.. (by robezy)
Microsoft Visual C++ 6.0
 
Does anybody know where to download Microsoft Visual C++ 2005 Version 6.0 Compiler for FREE??
[14 replies] Last: See if this link gets you anywhere: http://www.cnet.com/topic-softw... (by cartpauj)
string program (1,2)
 
I am probably well on the wrong path with this one which is why I can't get the program to compile in the slightest. The assignment instructions are : ...
[24 replies] Last: As in, what I would normally post in the first post of a thread? I... (by ryujin89)
Debuging Error
 
This code appears to work, it just causes an error. But I do not understand the message because I am not experienced in this language. This program should take ...
[4 replies] Last: char initials ; //... initials = name ; //... initials = name[i... (by Bazzy)
Infix to Postfix expression
 
This is algorithm to converts an ordinary infix arithmetic expression to a postfix expression ( such as ( 6+2)*5-8/4 to 62+5*8/4- ) while there are more ...
[2 replies] Last: thank you. it worked :D btw, I don't know about sstream, so I chang... (by Progesco)
simple program not working.
 
Hi, I'm a newbie in c++ and i'm having trouble with running a simple program. I'm using the TurboC++2.01 in compiling this program. #include <stdlib.h> ...
[1 reply] : 1. You're compiling C++ code with a C compiler. C++ compilers also com... (by helios)
Static typecast error
 
I'm doing this void homework for class and I can't figure out how to fix my last single error.This is the code #include <iostream> //for using cin and cout ...
[2 replies] Last: Thanks for the explanation. I finally cleaned it up (by kamigari)
class in class
 
I wrote a class named x in an other class' public named y. And i want to use something like that in main; x data But i can't solve how can i do that.
[2 replies] Last: yeap i solved with writing; y::x data; in main (by akayrak)
functions
 
I need to write a function called printDate that takes a single record of the type Date as a parameter and returns nothing. The function should display the cont...
[8 replies] Last: post your code using: [co de]...here is where you should put your... (by closed account iw0XoG1T)
Only works til 37th value
 
I have written a program for the moosonocci sequence, but after the 37th value it starts producing negative numbers. I don't know why it is doing this, any sugg...
[1 reply] : If a signed integral value gets too high, it will wrap back to the neg... (by Bazzy)
Stuck on homework problem.
 
Hi, everyone. This is my first time taking a C++ course so I was wondering if you could help me out with a problem for homework. The question in the book is: ...
[4 replies] Last: Really has to do with my logic. My logic isn't good. LOL. Thanks for t... (by paulh428)
by Null
Classes
 
I've never started learning classes seriously so let's start: #include <iostream> using namespace std; /* Class A: pointers and operator + returns *this...
[1 reply] : 1) None of them. All of them overload + incorrectly. Logically, + s... (by Disch)
how to add a file as a resource dev-cpp
 
Hello! Im trying to add a title.wav file as a resource to my dev-c++ project. I have no idea how to add it , can someone please tell me? What i mean here th...
[no replies]
Why is this not working?
 
#include <iostream> using namespace std; int main() { string password; cout <<"Enter password "; cin >> password ; if (password == 123456) { cout...
[11 replies] Last: Thanks alot! Working cool now. I just had to #include <string> Will c... (by closed account 2E0XoG1T)
by nevero
Problem with argv input
 
I'm trying to verify the input from a little test program. All I want to do is to be sure the user enter the '-' character before his arguments bool ve...
[4 replies] Last: You can check that argv exists using argc (by Bazzy)
by sdot
cout a diamond shape with size depending on user input
 
/* Hi i am trying to create a program that will output a diamond shape with its size depending on what odd number the user inputs. for some reason my code only ...
[1 reply] : The second for contains ever-false iterations continuation condition... (by melkiy)
by btripp
Can I make this function better?
 
Hey, My homework was to make a function that added two integers. The function was to throw an exception if the sum of the two integers were larger than INT_...
[5 replies] Last: @MaikCae I just tryed your code. At first I was thinking this way a... (by btripp)
cin.getline problem
 
What's the problem with the code: int main() { int a; char str1 ; char str2 ; cout<<"Enter an integer:\n"; cin>>a; cout<<"Enter str1:\n"; cin.getlin...
[4 replies] Last: It works as required. Thanks. (by AR Khan)
November 2009 Pages: 1... 34567... 25
  Archived months: [oct2009] [dec2009]

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