General C++ Programming - October 2011 (Page 2)

Insert into a sorted singly linked list
 
I was wondering if anyone could provide a quick easy tutorial on how to insert things into a sorted singly linked list. i am an amateur programmer learning most...
[2 replies] Last: Assuming you have a list class like the following: class list { ... (by closed account D80DSL3A)
Getting a code to pause
 
#include <iostream> using namespace std; int main() { int age; int name; int Lname; cout << "Enter your name" << endl; cin >>...
[4 replies] Last: Derp, guess we both make mistakes D= i knew somewhere that int meant... (by Mason Farina)
Data Structures programming
 
I'm a little stuck. I'm getting a few errors and I'm not quite understanding what I'm doing wrong here. I have my code posted. I'm going to have arrows pointed ...
[no replies]
Doubling an array?
 
I'm almost done with this assignment, i just can't figure out how to double the original array, and the unused elements of the second array have to be initializ...
[1 reply] : bump. can anyone help me out? (by Derekrm14)
book store analysis
 
Can someone help me solve this program please???? I dont know where to start Description: This program will read a data file that contains book store sa...
[no replies]
c++ book store sales analysis
 
Description: This program will read a data file that contains book store sales for 12 months. Each month record will contain 6 category book sales (Math, CS, ...
[no replies]
by gizzmo
boost bisection example
 
Can somebody give me a hand with the bisection method implemented in boost. I found this http://www.boost.org/doc/libs/1_47_0/libs/math/doc/sf_and_dist/html/mat...
[5 replies] Last: How does bisect know which instance of root to call f on? There is ST... (by kev82)
class object
 
Hi! I have created a class named point, where I could get x and y coordinates of a point. Now I want to calculate the distance between two points. I've done thi...
[12 replies] Last: (now i'm trying to use vectors to make it possible) (by tuttoscorre)
Reading and Storing Fractions
 
I'm trying to write a program that can do fractional arithmetic. I need to be able to input complex functions to do this. My goal is to be able to input somethi...
[no replies]
reading data from a file into a array
 
i need someone to help explain how i would read 40 numbers from a file into the array in the order they are read in. Im not good with arrays however i do know h...
[1 reply] : you'll have to use while statement like so: ifstream file("/file"); ... (by codekiddy)
[SOLVED!!] CUBE, dinamyc 3D array with diferent dimenzions
 
did u ever bother your self on how to make 3D array where second and third dimension will be of different size? well here is an example on how to do that. if ...
[no replies]
Please help me write code
 
I need help writing a code that will read numbers from a file to a array.This is a one dimenisonal array.
[5 replies] Last: Input/Output with files: http://www.cplusplus.com/doc/tutorial/files/ ... (by Kyon)
Key logging
 
I want to make a key logger (I want to create it to excersize my C++ cause im a beginner) so i can practice input/output with both keys and files. I already go...
[no replies]
Queue memory inefficiency
 
Hi, I'm trying to implement a program that uses a queue. Unfortunately, this queue seems to grow in size rapidly, which goes over 2GB of memory, which is mor...
[4 replies] Last: Solved: Include file for queue wasn't in .h (by ForeignCurs)
Math problem... Large products cause answers to become random.
 
Hi, i have written his program for my c++ class, and everything works perfectly. the program basically asks for two numbers and raises them to each other an...
[9 replies] Last: Interesting .... I didnt know setprecision could be used like that Th... (by brandonjconnor)
Different types of objects created when using various template constructors
 
Hi, I need help with following problem: Different types of objects created when using various template constructors, with same template types. The code that i...
[2 replies] Last: Hi helios, Thanks for help. I will check my compiler installation. (by ptolomey)
reading multiple txt file lines
 
I know i saw how to do this somewhere on the forums, but it seems to have dissappeared and i'm lost as how to do it. So, i will post this: How do I write mu...
[2 replies] Last: well, i just want it to write values to a file and then grab those val... (by IWishIKnew)
Help plotting a graph
 
Hi all, I have a text file of two columns (energy 1, energy 2). I need to plot E1 against E2. I did this in excel (as I have never programmed) but was told t...
[8 replies] Last: if you have your data in a text file, two columns tab separated, with ... (by mik2718)
help
 
hi guys i want such type of program that would open a file-1then open file-2 copy data from file-2 then paste it to a predefined location of file-1, rename the ...
[no replies]
Please help me with this functions
 
So i have to do a program that uses functions in c++, i have written the code and i successfully compiled, but every time i run it, after i input the (idnum,inv...
[6 replies] Last: so it should look like this?? void displaybalance(int idnum,int inve... (by nasty92svx)
October 2011 Pages: 1234... 36
  Archived months: [sep2011] [nov2011]

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