General C++ Programming - September 2012 (Page 20)

DEQUE =ERASE ELEMENT
 
WHY IS THE COMPILER REFUSING TO ACCEPT Rcall.erase(itr); ??? void delSchdlTask(std::deque<CList> &Rcall, string Taskn) { string sfn=""; int i=0; if (!Rcal...
[1 reply] : erase doesn't work with reverse_iterator. (by Peter87)
Sales tax calculator
 
This program will calculate sales tax. It is currently set to use the MA sales tax of 6.25% but if you edit the code you can change it to another state. Scre...
[no replies]
by snig
String trouble
 
Hello I'm having a problem figuring out a string method. I have read about string::find and string::npos to figure out that npos is a static value that is retu...
[4 replies] Last: OMFG I LOVE YOU TWO SERIOUSLY THIS HELPED SO MUCH lol (by snig)
Simple Math Program
 
A simple math program I wrote that performs addition, subtraction, multiplication, and division using two numbers that you input. Screenshot of Program: http:...
[2 replies] Last: Changing the int to a float allows the division to happen correctly (by samsonite94)
Class template <-> compile/link
 
Hi, Normally I code a class into 2 files, a h-file and a cpp-file. The class is compiled separate. When the class is used in a program, the h-file is includ...
[3 replies] Last: Yes, they are specializations (different structures). Yes, I tried it... (by Kitesurfer1962)
by jquant
Anyway to feed live data into c++?
 
I figured tha there has to be a way to feed live data into c++, but curious how to do so. I know how to feed live data to excel, now my question is, would I ne...
[12 replies] Last: Here is a quick hack of some example libcurl code. It's C. If I was co... (by Moschops)
by yvs
Error before compiling
 
Hi guys...I need help. I keep getting this error for lines 24 and 27 and I can't figure out how to fix it before compiling and running my program. Please see ...
[2 replies] Last: Thanks I figured it out (by yvs)
by sjahf7
goto statement
 
Hello all, i know it's frowned upon , but I'm going to use a goto statement, because I need to break out of quite a few nested 'for' loops. If I do something...
[4 replies] Last: ... and yes, it is frowned upon. (by kbw)
Please please help!!!!!!!!!!
 
I am new to C++ and I have the following code, and my if and else if statements are not working when I run it. It compiles fine. #include <iostream> #i...
[11 replies] Last: Thats what I ended up doing is the cin >> b1; (by amthompson4)
by jquant
If/else if statements not running as planned
 
Good evening gang, I just came across this forum and had to join, I also thought it would be a good place to see if some one can help me. Currently I'm new to ...
[9 replies] Last: I don't know much on graphics, I thought there was no graphics librar... (by Moschops)
How to protect update with critical section?
 
OS: Windows, does not need to be portable. Background: I've got subscribers and a publisher. Subscriber.h //Brief Subscriber details for simplicity ...
[3 replies] Last: Does this need to be multi-threads ? It seems all functions in publish... (by closed account o1vk4iN6)
by vw4x4
please explain this
 
cout<<'a'; cout<<'10'; cout<<'15.5'; a,10,15.5 are data constants.now,the question is how these data types are stored in memory.so,for finding that we can us...
[2 replies] Last: cout<<'a'; this will display the ASCII code of 'a' this is also calle... (by paulsaijoy)
by vw4x4
explain this statement
 
cout<<32; in this statement,is 32 being stored first and after this it is being printed on the screen?.am asking this question because,if we use a statement si...
[5 replies] Last: because 32 is a integer in a C++ computer language integer requires tw... (by paulsaijoy)
overloaded operator with <() function
 
/* Title : Lab Task 4 Question 3 Author : Lim Boon Jye Description : Operator Overloading Date : 13 September 2012 */ #include <iostream> #include ...
[15 replies] Last: @vlad thanks for ur help , and i fix it too. i just change the befo... (by BasicNewbie)
Preparing for C++ job interviews
 
I graduated from college a few years with a degree in a STEM field, but I am now looking for entry-level work as a software engineer. Currently, I only know C++...
[3 replies] Last: I can say surely that no one is capable to pass a C++ interview even S... (by vlad from moscow)
HELP ME PLEASE TO CONVERT CODE C++ TO C
 
#define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> #include<iostream> #include<string> using namespace std; class node{ string data; node* nex...
[4 replies] Last: THANK U SO MUCH, ^^ (by vwillto)
can someone help me fix this?
 
i have an assignment to read these types of fields, the value of a land mortgage and then calculate the cost of insurance and displays the results. Use an enume...
[7 replies] Last: @marvin77 Please re-post the code with the changes you made. Can't he... (by whitenite1)
by vw4x4
sizeof(10) ?
 
1) sizeof(10) gives us 10=2 bytes.this means that 10 is stored as an int data type.what does this actually mean? 2) is this the situation(int var=10) where dat...
[5 replies] Last: It's all about the type of a value. Here's another example. #include... (by kbw)
class
 
Hi! Im Working on a project of mines and I cant seem to get this class together. The class im working on is cd player. It can fast forward, rewind, increase vo...
[4 replies] Last: How about u overload de ++operator to do the fast forward and overload... (by moatatse)
Class cd player
 
Hi! Im Working on a project of mines and I cant seem to get this class together. The class im working on is cd player. It can fast forward, rewind, increase vo...
[1 reply] : well i think thise mite work. you will have to overload ur ++operator... (by moatatse)
September 2012 Pages: 1... 1819202122... 32
  Archived months: [aug2012] [oct2012]

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