Beginners - March 2011 (Page 29)

Help with enumeration and static casting
 
Hi, my name is shane. I am just learining c++. I am having a problem on my homework getting the correct answer to output. I need the input of the date (01...
[5 replies] Last: Your enum does not have a operator<< for ostream, this means that it w... (by Bazzy)
numbers after the decimal point
 
So lets say i try to divide 10 by 3 (10 / 3) and the answer should be 3.33333(3) how can i make the code to get me 4 numbers after decimal (3.3333)? and tell ...
[1 reply] : You already posted this question 5 minutes ago, please don't spam. (by hanst99)
by FSA
Runtime Error! Program does'nt start.
 
After reinstalling Outlook 2007 my adress program 'cobra plus 12' doesnt start but gives the error: Micr. Visual C++ runtime Library : Application has requested...
[4 replies] Last: Thanks a lot for your time. (Just for your info: I'm working since 199... (by FSA)
Array 2d in header but in object errors :(
 
Hey guys im just having a bit of trouble with my game project, Im trying to make a 2d array for a grid, this grid will be used to move the character around and...
[9 replies] Last: In case you care: When declaring a n dimensional array, n-1 dimensions... (by hanst99)
Sand Watch from Numbers (1,2)
 
Konishua, I want to develop a program with function With argument N - positive integer that displays numbers between 1 and N in a sand watch shape. The figure i...
[21 replies] Last: Nice. A bit weird, but it works. It should be <n instead of <=n. (by hanst99)
Problem with programm
 
I have a problem with a program i am making. it is a menu with three options. One is writing the needed data to a file and when CTRL+Z is pressed the input shou...
[1 reply] : #include<iostream.h> #include<fstream.h> #include<stdlib.h> Bad ... (by hanst99)
problem with process.h under Ununtu
 
I'm pretty new at C++. Just trying to do few lessons. Some of them completed succeful, but last one... #include <iostream> using namespace std; #include ...
[8 replies] Last: thank all for answer! (by janibeg)
Someone teaches me how to compile (c++)?
 
I want to learn to program in C + +, and for that I try to not only learn the language from a theoretical as well, in a practical way. I'm wandering through s...
[2 replies] Last: Compiling other peoples source code won't help you learn the language.... (by hanst99)
Passing in and returning a string array from a function
 
Hi there, Please consider the following code: #include <iostream> #include <string.h> using namespace std; string convertName(string arrayOne , in...
[3 replies] Last: Your delete is wrong, it won't cause a memory leak, it will simply cra... (by hanst99)
by peterr
Microsoft Visual Studio
 
Guys if i could ask a simple question as being a simple novice to c++ i would like to ask would the microsoft visual studio hold or be able to deal with the c++...
[11 replies] Last: My recommendation for reading material would be 1) Read the tutorial o... (by hanst99)
class refusing to accept external function
 
I have got a weird error were my class is refusing to accept a function that has been declared externally outside the class. Do I need some denotation that ...
[2 replies] Last: There's nothing wrong with this code. What does the error say? (by hamsterman)
char and wchar_t
 
hello, what is difference between char and wchar_t ?? and how I can use from wchar_t?? please explain with an example. thanks
[2 replies] Last: thanks (by shotgunner)
list
 
Hi, I need to write three functions, first one that need to extract Largest on the list, second one is split the Big and Small number. and the third one is spli...
[1 reply] : start simple: 1. build a list of integers: int intList = { 0, 8,... (by matsom)
Rereading files
 
After reading a file, how does one go back to the beginning? I basically want to "search" a file.
[1 reply] : ifstream infile("myfile.dat",ios::binary); //open for reading //read... (by oldnewbie)
First uni assessment
 
Hey guys. I'm learning c++ in uni and struggling along with it. I have about a week til our first assessment, and... I'm a bit concerned!!! Okay, so for the ...
[3 replies] Last: http://cplusplus.com/doc/tutorial/functions/ EDIT: You can also ... (by Danny Toledo)
by lalala
Why isn't my program working?
 
Every time i try to run it, it just says windows is fixing the problem or something like that. I'm trying to get the user to ask for numbers until the average o...
[9 replies] Last: You don't need to use the entire std namespace, when it looks like jus... (by WertleWoo)
Doese erase() free the memory?
 
class A{}; list<A> Alist; A *ap=new A; Alist.insert(*ap); ... list<A>::iterator it; ...// now 'it' point to the element created by new as above Alist.erase(it...
[3 replies] Last: You understand correctly. (by Disch)
Cin state ignore white spaces
 
88 cout << "nAccount #: " << i + 1 << endl; 89 cout << "Enter First Name: "; 90 cin.ignore(); 91 cin >> accoun...
[3 replies] Last: As I know cin stops reading when it sees a white space. cin.get() ... (by oldnewbie)
String values skipped when being entered from keyboard
 
Hi guys, I have a program that has a structure with almost all the variables being strings and when I enter them through the keyboard, some of them get skip...
[4 replies] Last: thanks!!! I used cin.ignore() right after the statements where I h... (by gonigkum)
Perl in c++
 
I was just wondering if I could implement Perl code in c++? The reason I'm asking is that I prefer Perl's filehandling over c++ filehandling because c++ filehan...
[18 replies] Last: Oops you're right =) my bad. (by ultifinitus)
March 2011 Pages: 1... 2728293031... 52
  Archived months: [feb2011] [apr2011]

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