Beginners - October 2010 (Page 30)

Why wont this compile on DEV
 
#include <cstdlib> #include <iostream> using namespace std; class setTime{ public: setTime(int d=0, int m=1, int y=1900){ ...
[6 replies] Last: Dev-C++ is a bit old yeah? I would suggest getting: http://wxdsgn.sour... (by closed account S6k9GNh0)
by wasabi
No overloaded operator<< for right-hand float?
 
I know that's not true, because I've used it a few hundred times, but that's the error I'm getting. error C2679: binary '>>' : no operator found which takes a...
[4 replies] Last: also note that if you're returning a non-const reference, you really s... (by Disch)
by areid
Skipping a line after a certain number of terms?
 
I am doing a loop where it adds one to the value of a number and prints it but I need it to skip after it prints every 5th term how would I do that? And als...
[3 replies] Last: Ok, I did make a post here earlier, but I was wrong, lol. This is h... (by Lynx876)
by Dink
Modulo Operator and If-Clause
 
Hi, I'm a Beginner in C++ and I have a problem with the Modulo operator. I'm writing a testprogram with following sourcecode: #include <iostream> usi...
[2 replies] Last: Thanks it's working ;-) (by Dink)
This *should* sort my vector
 
This is for a little database program i'm writing. It should sort the vector from highest price ( getPrijs() ) to lowest and show it. But for some reason it j...
[7 replies] Last: Found out and hour ago, just came here to post it was fixed. It indee... (by xander333)
by mowie1
Line asking
 
template <class generic> SListIterator<generic>::SListIterator (SNode<generic> * x) : m_current (x) what is that link asking. its asking me to start the l...
[1 reply] : That line is the first two lines of the implementation of SListIterat... (by jsmith)
by kaduuk
Tic Tac Toe game problems
 
Hey guys! I've been writing this tic tac toe game (grey wolf posted a thread, it's sort of included in the comments): /*Level: Beginner Your ‘Ass...
[3 replies] Last: I don't know if it'll help, cause the code is a bit messy and I can't ... (by Lynx876)
left and right justification
 
I am having trouble with left and right aligning my output for a project I am doing in a programming class. I have several lines of code that is meant to have ...
[1 reply] : umm.. http://cplusplus.com/reference/iostream/manipulators/left/ (by blackcoder41)
by DJ TLG
Problem with overloaded operator(>>)
 
I am very very new to c++. I learn java for the past 2 years the my college decided to change back to c++ so this is my first year in c++. Anyway i have an lab ...
[2 replies] Last: It worked like a charm. Thank you very much. (by DJ TLG)
identifier not found
 
Hi I made a function called jdn_to_time_of_day but get this error "ut_date_main.cpp(80): error C3861: 'jdn_to_time_of_day': identifier not found" The func...
[2 replies] Last: Thanks alot. That fixed it. (by LostCoder)
Adding Arrays
 
Hey Everyone, I wrote a program to practise inheritance. It basically asks the student to enter his exam results for mid-term and end-term for an array of s...
[1 reply] : int average int FinalsMarks ; for(int i=0;i<9;i++) remember that... (by blackcoder41)
by mowie1
assertion Failed on testing
 
I am doing a HW for my data structure class. I got the following errors. !!!FAILURES!!! Test Results: Run: 2 Failures: 2 Errors: 0 1) test: Test_arra...
[12 replies] Last: thanks (by mowie1)
While statement
 
Hello everyone, I am currently enrolled in Fundamentals of programming. We are using Introduction of Programming using C++ and we just got done with chapte...
[2 replies] Last: My professor''s last name is Tucker. And about the program, I got... (by Warpedbeamer)
Problems erasing a Vector in a map
 
I am creating an address book in which the user can input a name and unlimited email addresses for each name. I have everything working except the ability to d...
[7 replies] Last: LB you have saved the day! book is the vector used in my map, address... (by honkeytango)
What the symbol between class and class name mean?
 
Dear all: I have a basic question related to the class definition. I usually see something like class VTK_COMMON_EXPORT vtkClass in the software p...
[6 replies] Last: I explained the benefit - it is necessary to make the function availab... (by Duthomhas)
Looping Switches
 
Hello, I am relatively new to C++ and I have read multiple guides / tutorials so I figured I would have a good enough understanding of the language to make a si...
[5 replies] Last: Thank you very much for all your helpful answers guys :) (by Kiblinix)
convert double to int
 
I use gcc 4.4.3 for my work. Is there any flag i can give to g++ which will throw a warning on implicit conversion between double and int. I would like a warnin...
[2 replies] Last: Great, it worked ! thanks a lot. (by cpluplusrat)
Error with linked list program
 
Hi there everyone. I'm very new to C++, only a few days, but I have some experience with other languages. Currently I am building a program for a class that ...
[2 replies] Last: Thanks for the tips, I totally forget that main is supposed to return ... (by theeggman85)
How to copy large text files?
 
I have a problem. I need to find a way to copy from one text file to another FAST! Let's say for example a file is 50 MB and I need to copy it within about 3 s...
[6 replies] Last: Thanks you guys are awesome but because I have only recently started w... (by airman9519)
by Sauve
guessing game
 
Hello, I am a beginner trying to write a program on a Linux system using c++. My goal is to have the user input an integer from 1 to 100 and give the computer ...
[4 replies] Last: Thank you AlphaBravo, this is a big help (by Sauve)
October 2010 Pages: 1... 2829303132... 42
  Archived months: [sep2010] [nov2010]

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