Beginners - April 2012 (Page 21)

by Zu007
sorting bug
 
#include<conio.h> #include<iostream.h> void main() { clrscr(); int array ,min,temp,i,loc,j; for(i=0;i<5;i++) { cout<<"Enter the value of"<<"array["<<i...
[3 replies] Last: By construction array should end with the correct value. One of th... (by ne555)
Number word program can some help me
 
Hey everyone I'm having some trouble with my c++ program I'm trying to write a program that will use a calculator to calculate numerals but instead of inputing ...
[1 reply] : this is the code for the function #include <iostream> #include <std... (by well0143)
Using vector and class?
 
I have to create a program that will prompt a user radius and keep adding them until user says no. Then, the program gotta able to hold those numbers and calcul...
[3 replies] Last: And the program will also gotta able to do Displaying all the values ... (by Shinigami)
Seperate a string.
 
Hello, I have to separate a string of unknown length which is in a format that looks like "xxxYxxxYxxxY" where 'x' is a three digit number ranging from 0-9 and ...
[1 reply] : Something like this: #include <string> #include <cassert> #include <... (by JLBorges)
string array, data member initializer not allowed (1,2)
 
I'm getting a few errors, however I'm not sure what's going on. 1>------ Build started: Project: Mallous_e5c1, Configuration: Debug Win32 ------ 1>Build ...
[25 replies] Last: @Zachary Knight thank you for finding a bug :D , I could not test all ... (by Shinigami)
Integer to Binary
 
so I have this code int main() { int decimal; while (cin >> decimal) { cout << "Enter a decimal integer to convert it to binary: "; cin...
[14 replies] Last: cameron, #include <iostream> using namespace std; void decToBin (i... (by rsh0117)
C++ documentation
 
Hi. Where can I find a *.chm file that explains C++ header files? I mean something like Borland C++ help file. Reference section of this site is very useful but...
[4 replies] Last: For C, the man pages are quite useful. (not so much for C++) ¿what ab... (by ne555)
How to include a header to multiple cpp files?
 
Hi, I've been working on this for a while now and can't seem to figure it out. I trying to recreate a mario level, so I have main.cpp, a Mario class, a Goomba...
[1 reply] : And here's Initializer.h Initializer.h #pragma once #include "SDL.h" ... (by wolfmad)
How to Download FLTK to Visual C++ 2010
 
Hello I'm an absolute begginer to programming and I'm following Stroustrap's book. I'm trying to download FLTK to make it work with C++. When I download FLTK a...
[no replies]
Zipadoo
 
Could someone please tell me what's wrong her? Just learning classes. class History{ public: string name; int rank; }; int main() { vector<Histo...
[8 replies] Last: Alright I got it. Thanks for the help! (by Ryan Bush)
Calculations in cout
 
I am trying to figure out how to calculate a formula in my cout line and then display the answer. Could someone help me figure this out?
[12 replies] Last: You are welcome! I am gladd you got it! (by GritzAgravy)
Binary Search Boolean Function
 
Hello Programmers, I am new to the forum and I am in need of some guidance on the logic of the following function. The desired outcome is to return a Boolean fl...
[3 replies] Last: Thank you! (by GritzAgravy)
<Class T>
 
We have just learned about templates in my class. Is there any way to know what type of data the variable is? Something like: template <class T> void ...
[1 reply] : For example you can use typeid cout << typeid( T ).name() << endl; (by vlad from moscow)
DECLARATION SYTAX ERROR
 
Can someone help me out with this? I keep getting a "Declaration syntax error" at line ""int main()". Is there something wrong with my int main()? And how do i ...
[6 replies] Last: The reason it says that F should have a prototype is because there is ... (by doug4)
Calculator not working as expected?
 
Hello, I've been updating my calculator a bit lately. Before I started to update it, it worked just fine, but now, it isn't working like before. It is compiling...
[4 replies] Last: It works, thanks much guys :) I get what you mean by the braces now iH... (by doompickle)
Help with arrays and filestreams
 
Hey! I'm a beginner in C++ and have been trying to get this code working, to no avail. It is suppose to read in text from a file and replace as many letters as ...
[5 replies] Last: Thanks for all the help. I'm stilling having one or two problems, but ... (by aaronaaa)
by Majin
Do i need to memory delete this vector of pointers?
 
Hello, i have the following code std::vector<MyClass*> myClassList; anotherObject->GetMyClassList(myClassList); ... // no longer need the myClassL...
[8 replies] Last: Thank you all for your input - my question is now answered, the second... (by Majin)
by ozone
school assignment
 
hello i need help on this question "If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples i...
[4 replies] Last: yeah i got it all tanks so much (by ozone)
File inputs without the stream state?
 
Is there a standard function in c++ that can perform file inputs like ifstream does but without invoking any of the stream state libraries. Similar to how prin...
[9 replies] Last: IT WORKS!! IT WORKS!! Thanks so much for your help!! THANK YOU!! THANK... (by AirCannon)
Fill in the blank
 
Hello, In the following program a user enters a string and then enters a number. The number will return that amount of characters in the string. It works great ...
[12 replies] Last: What you need to understand is that a string is a complex array of cha... (by Vlykarye)
April 2012 Pages: 1... 1920212223... 66
  Archived months: [mar2012] [may2012]

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