Beginners - November 2011 (Page 51)

Array cout trouble
 
Im having trouble with my array. When I run the program it skips the first "enter your details" and goes straight to the next one. Anybody know what I have forg...
[3 replies] Last: Ok I am still having difficulties with this. I gave it the inputs but ... (by Declan Murphy)
by chekz
Putting Values in Text File into a Program.
 
Hey Guys, I have a text file which contains a single line. "100 200 300" In my program I have three ints. int x; int y; int z; ifstream is; ...
[no replies]
using strtok
 
plz help me for this. i was trying to find similar words from two sentences string1 and string2.but i having problem with using strtok and strcpy together.plz s...
[no replies]
sum of even numbers between two integers
 
ok now i have to output the sum of all even numbers between num1 and num2 heres what i have. #include <iostream> using namespace std; void main() { int...
[5 replies] Last: ohhh..sorry =] (by sean903)
Need Help With Multiple Variables
 
I am trying to code a program/file that will do the following. I am converting a list of codes a friend gave me into a format a cheat system in a game can use. ...
[no replies]
by ivlatt
Vector of objects
 
Hi all, I am on the verge of finishing my banking application, although I have hit an issue whilst creating a vector of objects. From what I understand/have r...
[2 replies] Last: I haven't been programming in C++ for a while, so I don't really remem... (by Dacster13)
displaying odd numbers
 
can anyone teach me how to output all odd numbers between two integers? heres what i have so far- #include <iostream> using namespace std; int main () ...
[5 replies] Last: Might be worth looking at too: #include <iostream> using namespace ... (by Mathhead200)
Help needed quick
 
hey would like some help in this error the compiler is giving me. cannot convert `float*' to `float' for argument `2' to `void calcSalesTax(int, float)' Here...
[7 replies] Last: nice thanks for the help Dacster13 fixed the problem i forgot to put t... (by Pip3mAn)
Best compiler
 
What is the best compiler to use. I use Microsoft visual C++ 2010.
[9 replies] Last: [quote=Codekiddy]so what does "quantum physics" has to do with "Best c... (by closed account 1vRz3TCk)
by vfc
Using a generic stack class
 
Hi there, I'm trying out templates, and I've been getting the following compiler error where I declare a template: Stack2.h:5: error: expected '>' before num...
[2 replies] Last: Thanks, coder777, that was exactly it. I changed the template paramet... (by vfc)
How to keep leading zeros?
 
Hello, I am trying to make a program to reverse an integer and store it in a variable (without using arrays). For example if user enters 12345 as input, then...
[7 replies] Last: Thank you mirceam91, Gaminic and whitenite1. I got my answer. :) (by ITFreak)
Need help with a program
 
So, i have an assignment i've just started working on but something doest work. I have a class Members, which has 3 fields, id, first name and last name. I'm r...
[4 replies] Last: I tried running it step by step. it does everything right. it reads wh... (by mirceam91)
Interest C++ problem!!
 
Here's my assignment. I have no idea how to finish it.....lol https://course.cse.ust.hk/comp1004/assigns/assign2/index.html#
[2 replies] Last: 1. We need a username and a password (which we obviously don't have) t... (by Stupebrett)
Infinite loop - Blackjack
 
Heeeello! So, i've made the game blackjack. When I bet all of my money and get busted the program will reset my player/s. That's a problem, because after the b...
[2 replies] Last: bump (by Andre Ekblom)
Need help understanding which OS types support C++ (sort of...)
 
Hi I am trying to find the words to describe this, so please excuse me if I don't make much sense... So, when a C++ program is compiled, it is made into a...
[6 replies] Last: Ok, thanks! That was a great explanation. (by ratman3141)
using strtok
 
plz help me for this. i was trying to find similar words from two sentences string1 and string2.but i having problem with using strtok and strcpy together.plz s...
[1 reply] : ill make u it easy here the part of the program i cant get: char str... (by nvrbckdwn)
by dardar
"is" keyword in managed code
 
hi guys. i have a CLR project and a c++ managed class. i need to mimic the behavior of the "is" keyword from c# but i dont know how to do it in managed cod...
[1 reply] : To be honest, that doesn't look like standard C++. Anyway, I think... (by Gaminic)
by smalld
need brackets for default constructor?
 
Hi, I am confused with the following, any one know why if the bracket is needed for Stock a = stock(); but not for: Stock a = new stock; ...
[7 replies] Last: The reason why I ask is I vaguely remember when I take the class, the... (by andywestken)
Why store variables inside classes?
 
What is the use of storing variables inside classes? #include <iostream> #include <string> using namespace std; class theClass{ public: void setN...
[6 replies] Last: I think i got a quite good understanding of it now. Thanks! (by CakieBakie)
Insertion Sort
 
I created an insertion sort for an assignment about a year ago for a data structures and algorithms class and now when I run it the highest number in the sort c...
[2 replies] Last: thank you very much (by cbouwkamp)
November 2011 Pages: 1... 4950515253... 65
  Archived months: [oct2011] [dec2011]

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