General C++ Programming - January 2014 (Page 2)

error LNK2005 - already defined
hello, I know this error has been published many times but I couldn't find a solution to mine. ...
[5 replies] Last: Are you using #ifndef, #define, & #endif?? If not, it could be redefin... (by puredesi5)
Exception Handling
Why is exception handling needed? For example, if my function divides two numbers and returns quotie...
[2 replies] Last: Your function is returning a value of type double to the caller. What ... (by Cubbi)
Another making a class problem
So I've been turning my programs into classes and I run into errors. So this program is sup...
[10 replies] Last: you never opened the file also you wan't the string header file not cs... (by Yanson)
Problem writing my class
#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring> ...
[6 replies] Last: How could I make it so that it counts those executable lines? (by cppnoob25)
by Jarl
Finished Accelerated C++.. Now what?
After two weeks, I've finally finished my first book, Accelerated C++, for my first language. Now I ...
[2 replies] Last: > Ultimately, my real interest in programming is to be able to create ... (by JLBorges)
Can this code be modified for hash usage
Hi Fellow programmers, I was implementing hash map using ordered map. I was reading online about st...
[1 reply] : std::unordered_map implements a hash map already and uses std::hash... (by LB)
Pointer Point to Pointer?
Is this the correct format to point a pointer (pointer1) to another pointer (pointer2)? &pointer1 ...
[2 replies] Last: Thanks! (by jsbrowndog2013)
template class
I have a doubly linked list and I insert different data items into the nodes. All works fine! The st...
[5 replies] Last: reply for Tom B I hope I do this correctly, never posted code so here ... (by Steven66)
random() - can't use in C::B
I'm unable to use the function random(num); in Code::Blocks. it shows the error : error: 'rand...
[6 replies] Last: for this i have to study the <wincrypt.h> library first and it is la... (by ALOK R)
Test Programs
I am currently trying to write a test program involving constructors. I know what I am about to ask ...
[2 replies] Last: o.o wow. Well then this is embarrassing but thanks lol (by Opjeezzeey)
Open jpg file using shellexecute
I'm working on a deck shuffler. As a card is drawn the jpg file will be opened in a new window. I'...
[no replies]
Guess-my-number Program
I'm trying to get a guess-my-number project to work, but attempting to get it to loop results in err...
[1 reply] : Right now, your only loop is for(int index=0; index<20; index++) ... (by long double main)
IDL FIX Equivalent
Hey, I was wondering if there was some sort of C++ equivalent for the IDL FIX function. For exam...
[1 reply] : Are you limited to arrays or can you use vectors? Each time a number i... (by Danny Toledo)
Calculator program
Hey guys, I cannot figure out how to fix this to where it works. I am supposed to get 2 numbers then...
[3 replies] Last: Also, don't ever call the main function - it's special. Instead set up... (by TheIdeasMan)
by Chubby
srand problem?
I want to be 30 numbers not 29! I knew that if we do rand() %30 +1 will count the last number too......
[1 reply] : % gives you the remainder after division. So 7%3 == 1 because 7/3 giv... (by Disch)
I ran into this question If p is a pointer-to-int variable with the current value 440, and the siz...
[6 replies] Last: So it's 448 gosh I feel stupid right now... Thanks for the help guys! (by ImperfectCoder)
Reading csv file
hi, how do i search a csv file?. I have a table with 3 columns (Employee ID , salary ,grade ) If i...
[2 replies] Last: However, the serialization exists only on a per-record basis. It wou... (by Duoas)
Why am I getting this error?
Hi, i'm getting cannot call member function 'double InternetCharge::calcPlanCharge(int)' withou...
[9 replies] Last: Damn, I got it all wrong... I thought you couldn't call nonstatic func... (by maeriden)
by Renato
Open and store a value to the text file
This my deposit function, i want to open the file (balance), then add the sum and store in on the te...
[13 replies] Last: How are you setting the value for currentBalance ? (by Garion)
Need to understand this question
Hi, First of all sorry for indirect/inexact title of this post. (I wrote it like that intentionally ...
[5 replies] Last: happy to help. =) (by Disch)
January 2014 Pages: 1234... 25
  Archived months: [dec2013] [feb2014]

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