General C++ Programming - March 2014 (Page 6)

by LB
Calling the destructor + placement new
 
Besides being just generally frightening, does this program contain any undefined, implementation-defined, or unspecified behavior? Or is it well defined? #incl...
[5 replies] Last: Thanks JLBorges. For the benefit others to understand "It is unspeci... (by kannanmj)
Median number?
 
How do I get the median (middle) number of three numbers? (C++) For example; - User enters the following three numbers; 3, 1, 7 - Program comes up with the...
[1 reply] : First sort the sequence, then apply: Median for an odd sequence of nu... (by n4nature)
vector<u16string>, cout, ostringstream not working together
 
vector<u16string>, cout, ostringstream not working together. see https://groups.google.com/forum/#!topic/alt.comp.lang.learn.c-c++/CY7RxUBj_2c any clues as to...
[10 replies] Last: tried typedef std::basic_ostringstream<char16_t> uostringstream; typ... (by jmichae3)
streambuf for socket
 
Hello, I am trying to make a streambuf for a socket, which will use either WinSock or POSIX sockets depending on OS. I understand about how to send and receive ...
[7 replies] Last: [quote=Computergeek01]Assuming that you know what you're talking about... (by LB)
I need some help revising.
 
I need to make this code more user friendly for school. It needs to go to enter the initial gas quantity/odometer reading, then route to get a second count on a...
[no replies]
How would you design the data structure under this circumstance?
 
Suppose, I have point_c, line_c and block_c three classes: class point_c { public: double x, y; }; class line_c { public: vector<point_c> Pt; ...
[7 replies] Last: Sets don't have indexes, but they prevent duplicate objects. I just re... (by LB)
Select a field using conio
 
Hi, I am trying to create a Sudoku game. I need to use conio.h to select a field and move the cursor to that field to insert a value. Is this how I select the f...
[no replies]
please help me
 
I have some problem with this program I cant understand the idea!!!!! A bank in your city updates its customers’ accounts at the end of each month. The bank...
[1 reply] : What is your question? What don't you understand about the description... (by Zhuge)
classes help Please!
 
Example 10- 10 defined a class personType to store the name of a person. The member functions that we included merely print the name and set the name of a perso...
[no replies]
How do I <<"output sections of txt code in random order " << endl ;
 
I have posted this in the beginners forum, but I think what I want to do may require a more skillful C++ programmer to guide me in the right direction. I have...
[4 replies] Last: Ok I have sorted it out by changing the names of the const, and char, ... (by Cbasic88)
infix to postfix conversion function error
 
My input is "A+B-C;" but my function will always output "A+B-C" instead of the correct postfix expression "AB+C-". Am I missing something simple? void E...
[no replies]
by brichz
C++ and Qt for android programming
 
Hello, Is it advisable to create an android location based reminder with NetBeans IDE?
[3 replies] Last: OP is probably talking about qt mobile which lets you write apps using... (by Smac89)
Deleting a linked list
 
Hi, If I have a linked list, how can I delete it at the end of my program to free the memory taken up. I know I have to use delete but not sure how to use it ...
[4 replies] Last: Allright, thanks for your help! :) (by Stormboy)
How do I correct these?
 
And what is the expanded form of Widget(int a) : id(a) {} Thanks! class Widget { public: //constructors Widget() : id_number(0){} Widget(int a) : ...
[1 reply] : you need to be more specific. what is there to correct? also, what do ... (by Little Bobby Tables)
Decrypting and encrypting following a certain protocol?
 
Hello, it's my first question on the forum! Now, I have a certain method of encrypting text. You get the first character of the word. For example in the word "h...
[4 replies] Last: Thanks for everything! :D (by Just Me)
by owj549
C help
 
Hi I am new to c programming. I dont know whats wrong with my code. This program is supposed to find the root of a polynomial with x being the number...
[5 replies] Last: I tried entering random numbers , and all the roots came out the same ... (by owj549)
by jbush
yargato gnu toolchain, cant get it to work
 
hi I'm trying to do an (x), (y) plotter project using the parts from an Epson Printer. It has two 40 volt DC motors which move the (x) and (y) respectively...
[no replies]
by Alby94
POSIX Threads
 
I use Dev-C++ 5.5.3. The linker reports me this error...why? http://i59.tinypic.com/negen8.jpg
[6 replies] Last: Thanks L B... im idiot xD (by Alby94)
by y510
Array for message manipulations and Encryptions/Decryption sorta
 
So basically i need to write a code that the user needs to enter either 'e' or 'd'. When 'd' is entered thus the user needs to input as well an array of numbers...
[2 replies] Last: That was only an example of what i meant not the actual output that wi... (by y510)
by shaytn
Fotran program
 
I need to write a fortran program that reads a set of scores from a data file and calls on three function subprograms to calculate the mean, median, and standar...
[11 replies] Last: Can you ask your classmates for an example input file? (by LB)
March 2014 Pages: 1... 45678... 36
  Archived months: [feb2014] [apr2014]

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