
please wait
by cppnoob25
Problem writing my class
|
#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; class loc { public: int cou... |
Jan 30, 2014 at 6:17pm
[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 want to expand on my C++ proficiency. Where should I begin? ... |
Jan 30, 2014 at 5:17pm
[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 std::hash function and I did not know how to use it here. Can ... |
Jan 30, 2014 at 4:22pm
[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 = &pointer2 Im kinda rusty when it comes to pointers :P... |
Jan 30, 2014 at 4:20pm
[2 replies] Last: Thanks! (by jsbrowndog2013)
|
by Steven66
template class
|
I have a doubly linked list and I insert different data items into the nodes. All works fine! The structure is identical for different category items. Is it pos... |
Jan 30, 2014 at 2:07pm
[5 replies] Last: reply for Tom B I hope I do this correctly, never posted code so here ... (by Steven66)
|
by NPcomplete
random() - can't use in C::B
|
I'm unable to use the function random(num); in Code::Blocks. it shows the error : error: 'random' was not declared in this scope while the same code work... |
Jan 30, 2014 at 10:42am
[6 replies] Last: for this i have to study the <wincrypt.h> library first and it is la... (by NPcomplete)
|
by Opjeezzeey
Test Programs
|
I am currently trying to write a test program involving constructors. I know what I am about to ask is pretty basic stuff but Visual Studio is not recognizing w... |
Jan 30, 2014 at 7:44am
[2 replies] Last: o.o wow. Well then this is embarrassing but thanks lol (by Opjeezzeey)
|
by setzer13
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'm trying to use ShellExecuteA. My code compiles but the fil... |
Jan 30, 2014 at 3:23am
[no replies]
|
by gwonnywong
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 errors. Maybe my method of looping it doesn't work. Sorry, I'm ... |
Jan 30, 2014 at 3:20am
[1 reply] : Right now, your only loop is for(int index=0; index<20; index++) ... (by long double main)
|
by caveman127
IDL FIX Equivalent
|
Hey, I was wondering if there was some sort of C++ equivalent for the IDL FIX function. For example, say I want to find all the elements of FLOAT ARRAY1 th... |
Jan 30, 2014 at 2:20am
[1 reply] : Are you limited to arrays or can you use vectors? Each time a number i... (by Danny Toledo)
|
by VincentOrfeo
Calculator program
|
Hey guys, I cannot figure out how to fix this to where it works. I am supposed to get 2 numbers then have the person choose what they want to do to the numbers.... |
Jan 30, 2014 at 1:37am
[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.... "For" Loop i try <= and < doesnt work? can someone give a ... |
Jan 30, 2014 at 12:16am
[1 reply] : % gives you the remainder after division. So 7%3 == 1 because 7/3 giv... (by Disch)
|
Point-to-Int |
I ran into this question If p is a pointer-to-int variable with the current value 440, and the size of an int on our system is 8 bytes. What is the value of ... |
Jan 29, 2014 at 10:12pm
[6 replies] Last: So it's 448 gosh I feel stupid right now... Thanks for the help guys! (by ImperfectCoder)
|
by Hyder Ali
Reading csv file
|
hi, how do i search a csv file?. I have a table with 3 columns (Employee ID , salary ,grade ) If i will enter an Employee ID and it should return the salary a... |
Jan 29, 2014 at 9:20pm
[2 replies] Last: However, the serialization exists only on a per-record basis. It wou... (by Duthomhas)
|
by drakogate
Why am I getting this error?
|
Hi, i'm getting cannot call member function 'double InternetCharge::calcPlanCharge(int)' without object for my function 'void displayBetterPlans(), and I ... |
Jan 29, 2014 at 7:56pm
[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 text file. float deposit( int x, int currentBalance) { ... |
Jan 29, 2014 at 5:33pm
[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 for a reason) Now coming to the business, there is a questi... |
Jan 29, 2014 at 5:08pm
[5 replies] Last: happy to help. =) (by Disch)
|
by D4N005H
How to fix this simple script?!
|
Hello again :p I coded this in order to sum two maximum 50 digits number (eg: 100000000000000000... + 10000000000000000... ) So I made an array like this " A ... |
Jan 29, 2014 at 4:58pm
[5 replies] Last: Just fixed it (without strings!), that was easy..... well medium for m... (by D4N005H)
|
by dario275
Game
|
Hi. I'm start now in C++. I made 2 array val e sem . There is a method to made a multidimension array paper or unidimension paper ? Example in array val... |
Jan 29, 2014 at 4:13pm
[1 reply] : Please take a look here: http://www.cplusplus.com/doc/tutorial/array... (by condor)
|
Still can`t get clang++ to work |
So I made a post some time ago about clang++ on code::blocks and someone(I don`t know who) showed me a website, after following instructions, it still dosnt wor... |
Jan 29, 2014 at 1:46pm
[3 replies] Last: sorry! no idea. same problem with me while trying to use SFML on C::B ... (by NPcomplete)
|