General C++ Programming - July 2014 (Page 20)

Data Encryption Program
 
Hello, I have a data encryption program I am trying to work on, and I am needing it to allow users to input 0's if they want to. This is the last part of th...
[13 replies] Last: Hmm, it looks like cin.sync() only works on Windows for some reason. T... (by Yay295)
Good intermediate book?
 
Hi all Please can you suggest a good intermediate book for C++ Basically I am looking for topics such as when to use pointers, namescpaces, design pattern...
[4 replies] Last: +1 on Effective C++ by Scott Meyers. Excellent book(s) that will defin... (by ResidentBiscuit)
When to use pointer to pointer in C++?
 
I was looking through this code for ternary search tree. I was not understanding when we use double pointer in c++? I tried changing the Node** to Node* it ...
[5 replies] Last: 1) What does Node*& correspond to? Is it similar to Node**? 2) What i... (by htirwin)
Limit number of cout error
 
Hello. I was wondering how to limit error message to one only. For example cin.getline(stringname,7); for(int i=0;i<size;i++){ if(strcm...
[2 replies] Last: Create a boolean flag outside of the for loop and initialize it to zer... (by Computergeek01)
by Larry2
pointer aliasing and reference ?
 
Hello, I am coming from c language and I wish to learn c++ further. I am used to the restrict keyword to hint the compiler that no overlap is going to hap...
[1 reply] : for gcc compiler you can use __restrict__ void foo(int *__restrict__... (by Idontownaplanet)
Bone parent indices to linked list
 
I have an array of bone parent indices (as intgers), where root bone is tagged as -1, bone can have only one parent. At some point i need to traverse thru all...
[6 replies] Last: Thank you very much. :) Now i need to figure out how to free all tha... (by morando)
Homework Help
 
Hello, I was working on my C++ homework and was wondering if anyone could help me with part of it. I wrote the .cpp and .h files but now I am stuck. Here is wha...
[4 replies] Last: Thanks! Now how would I write a method void output(ostream & out); tha... (by cloud125)
Trip Mileage program
 
NOTE. THIS HAS BEEN EDITED FROM THE PREVIOUS VERSION THAT I POSTED!!! Hi all. I am having a problem with this program seeing as it can't run at all. It seems li...
[2 replies] Last: Thank you for your input! I still can't run the program but I understa... (by closed account 2bMo216C)
map
 
Hi. What are 'first' and 'second' in the example at: http://www.cplusplus.com/reference/map/map/at/ ?(The last line) Thanks in advance
[2 replies] Last: first and second are the items in the map. so in the example.. { "al... (by Jaybob66)
Reading an integer vs a character
 
Today i had my final exam in computer science. I did great , but i got a question regarding the last exercise. It was something like this : A sub-number is a tw...
[4 replies] Last: Heh i got maximuuum points( 100 p) !!! (by RaresMihai01)
[QUESTION] Advanced default parameters function
 
Hello everbody, I'm asking how to create a function with default parameters with the possibility to init the parameters that you need. Code Example : #incl...
[3 replies] Last: There is no support for named parameters, but it is possible to emulat... (by keskiverto)
how to read csv file
 
Input file: Course Of Sales.csv Time,Price ($),Volume,Value ($),Condition 10/10/2013 04:57:27 PM,5.81,5000,29050.00,LT XT 10/10/2013 04:48:05 PM,5.81,6272...
[3 replies] Last: #include "date.h" #include "time.h" #include "stock.h" #include "Vecto... (by soulmind)
While Loop
 
Hello everyone, this is my first post here and I am new to cpp. I have tried to make a program for Customers details. Initially I had a problem with while loop....
[2 replies] Last: @coder777 Thank you it worked for me. I have now changed the PURCHASE... (by Vaishali)
putting data into an array using a for loop from input file
 
Hi there, I'm trying to pass several integers into the array idAr from an input file using a for loop and then having them output on the console. The output sh...
[4 replies] Last: oh I think I get how your code works, ill need to test it and thanks g... (by pandahamalia)
by chhe
indeterminate vector
 
Lets say you want to make a vector of indeterminate size and set the location equal to the integer 3 and the location equal to the integer 4, but leave al...
[2 replies] Last: > something other than #include <vector>? > If so how would it be don... (by JLBorges)
How to compare price which is read from the file?
 
Hi. I'm trying to compare prices which are read from the file along with other information. The input file is as shown below: The file data is something like t...
[5 replies] Last: bro can i see your work? i need a reference for my assignment i'm new ... (by soulmind)
Check if a button has been pressed?
 
I know how to check if a particular button has been pressed but I basically want to disable the delete button when ever the listbox has lost focus. I am having ...
[1 reply] : I wouldn't recommending using WinAPI for GUI. There are a lot of libra... (by closed account 10X9216C)
Singly Linked Lists
 
It's been a while since I've been on this site, but now I return asking for help to get ready for a midterm. As the title suggests, I need help with singly l...
[1 reply] : If you've written the code and you aren't able to reproduce it, then y... (by closed account 10X9216C)
Stuck on a Hw assignment and could use some help
 
Hello all, I have an assignment where I have to enable a user to enter four numbers and if the numbers match the data file it prints out access granted if the n...
[4 replies] Last: @sdailey The way your program is right now, you don't need an array. ... (by whitenite1)
Multiple Definitions Error
 
I have decided to make my own game engine using SFML (2.0) however i can't get far because i am getting several Multiple Definitions Errors. I have checked and ...
[2 replies] Last: yep sorry i misread where i was learning from i have fixed it now (by Cronnoc)
July 2014 Pages: 1... 1819202122... 26
  Archived months: [jun2014] [aug2014]

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