General C++ Programming - November 2012 (Page 11)

Help with basic program with functions
 
I am trying to make a program that takes in double values shows them, then reverses them, this is ho...
[2 replies] Last: Thank you it fixed the error ;) Still my program is very weird and not... (by closed account ETAkoG1T)
Segmentation fault (core dumped)
 
#include<iostream> #include<fstream> #include<sstream> #include<stdlib.h> #include<math.h> #include...
[3 replies] Last: thank you:) but that's just part of my code i need to use all of th... (by Panatda Tokhume)
by lmd141
Unhandled exception
 
Hi there, I have a function that reads data from a text file, like so: void coords(int &atom_...
[4 replies] Last: Would you not want k=k+1; after the rand() stuff? You look like yo... (by closed account z05DSL3A)
by areej
can you helpp me plz
 
1. Write a C++ program that converts uppercase letters to their corresponding telephone digits . The...
[5 replies] Last: So... you're asking us to do your homework for you? (by MikeyBoy)
deleting registry keys without windows' restrictions
 
so i need to delete registry keys but it doesn't need to be done through system commands. if i do th...
[3 replies] Last: It doesn't matter how the registry is accessed, whether by a program o... (by kbw)
Segmentation fault at a point in a 2-dimensional array.
 
I'm in the process of debugging code, and reached a point that confuses me. At the number adjmat o...
[5 replies] Last: You could check your compiler's documentation on default stack size an... (by cire)
curious result
 
Hi.Why is it that the following code doesn't print 5 consecutive zero in f1 calls? f1(const int ...
[6 replies] Last: What does parsed mean to you? (by cire)
by gghf
Help with storing numbers in arrays
 
Hi so I am learning about arrays, I just learned how to declare one that holds 5 number: a ; but ho...
[1 reply] : Are you reading input from the console (user) in your loop? If so, tr... (by HellfireXP)
by Prog24
Can Anyone Find my mistake?
 
My program is supposed to read in a file that has a breakfest menu including foods like eggs and bac...
[3 replies] Last: I meant that the function was not called in main(). The parameter men... (by TheIdeasMan)
Multimap object as key, searching via a variable value in the object used as key
 
This is somewhat simillar to the archieved thread: "search based on two keys" by mikej I am usin...
[1 reply] : A link to that thread would be appreciated. ¿What do you intend to u... (by ne555)
My program won't stay open.
 
I'm trying to write a simple program that basically just outputs a resolution that I gave. I put the...
[3 replies] Last: ^ No. Read the sticky http://www.cplusplus.com/forum/beginner/1988/ or... (by ne555)
Reading into an array
 
So my program needs to read a 80 by 60 array of integers from a text file into an array. The process...
[5 replies] Last: Well, I finally got it to work: void LoadMapFromFile() { FILE * my... (by closed account GbX36Up4)
c++ stacks and queues palindromes. Working but need a little help.
 
I finished a program where it takes lines from a text file and tells you if it is a palindrome or no...
[no replies]
Control
 
One day, I donwloaded a program that enabled you to create some music, sadly it was fake and a guy t...
[1 reply] : I doubt anyone will help you write such malware. (by TheIdeasMan)
String Class
 
im making a string class, but i have some trouble making it. could some one please tell me what im d...
[11 replies] Last: yeah i realized that i just need to pass the char *'s instead of the o... (by Aramil of Elixia)
by Aikon
Overloading operator and variadic arguments
 
Hello guys, Here goes my first idea: vector<T> operator (vector<int> pos){ vector<T> val(...
[1 reply] : It's not possible: the number of arguments passed to each operator is ... (by Cubbi)
How do I get the expected outputs for this following program?
 
CSCI 14 Assignment 9, Due Dec 2 Design and implement a program that allows the user to keep tr...
[4 replies] Last: My question is: How can I be able to get the expected outputs for this... (by andy2012)
Program will not compile, when using arrays
 
I did this program. In the Data.txt I have the employee name, wage and hours on the same line like t...
[no replies]
Overloading operator- with template parameter
 
Hello, I wrote a STL-like container, which represents a binary tree and which includes iterators. I...
[7 replies] Last: Ok, it seems to work indeed. Thank! (by AngeSurTerre)
by furkan
donT use cmath
 
how can I write ln(x) and log(x)
[5 replies] Last: Nice job. My 2 cents on your ln()... You could improve efficiency by ... (by closed account D80DSL3A)
November 2012 Pages: 1... 910111213... 51
  Archived months: [oct2012] [dec2012]

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