General C++ Programming - October 2015 (Page 11)

by rayb20
quicksort using a median of 3 partition
 
In the process of doing a sorting algorithm project and having some trouble with quicksort using a median of 3 partition. How should it be implemented? Is th...
[4 replies] Last: Median of three should sort the three elements and always return the m... (by Duthomhas)
Some Help Please!
 
Why does my code not loop back to the start when "namechange" = 0. The code just stops after it outputs "Here you will be able to start your very own business! ...
[3 replies] Last: Changed == into = That would not be correct. Change = to == in your... (by cire)
switching int to perform binary operations?
 
Hello, I have a function that returns an integer which I'd like to work using binary operations, but I CAN'T use any variables the number represents walls aro...
[5 replies] Last: I'm not sure I can use constants as well They are not nessesary, I ju... (by MiiNiPaa)
C++/CLI Operators not working right
 
Can someone shed a a light on this please Some operators are not working correctly, is it me that's doing stuff wrong? I'm working in windows forms c++/cli, vis...
[13 replies] Last: Thanks, the comma fixed the issue, now the cacluator is working! :D Go... (by AbsenceDev)
by grag
runtime error (SIGSEGV)
 
why i got RTE in this code? http://ideone.com/DdEEI8
[1 reply] : if ((char)a =='10') ans+=10; What this line should do? (by MiiNiPaa)
Learning to write in C++
 
Hello, i'm currently 17 years old and I am starting to look at university. I am really interested in programming courses and video games courses. I have recentl...
[4 replies] Last: Thanks guys! (by Joecastor)
Connecting to SQL SERVER
 
I've been developing in C# for quite a few years and am interested in getting back into C++ development. Most of my projects at work require querying data from ...
[2 replies] Last: Thanks. I'm installing Qt right now to play around with. (by skeasor)
Plagiarism Program
 
I have been assigned a project to create a plagiarism program that runs through cpp files and counts iteratives and selections statements and i have know idea w...
[no replies]
how to update lastaccesstime of a remote file ?
 
I wanted to know how can I programatically update the "Last Access Time" of a file which is sitting in a remote system shared through windows file share (DFS). ...
[2 replies] Last: you can use the Windows function SetFileTime. See https://msdn.microso... (by fcantoro)
Question about Printf and Cout (Sorry, EN isn't my mother language so I couldn't make a clearly tittle)
 
Hi guys! I'm having an issue like these below examples: Example: I have a variable: x = 1.2345 and I want to output "x = 1.23" to the screen. Therefore, in C,...
[1 reply] : Yes, you can do the same thing with cout. #include <cstdio> #include... (by Peter87)
stack implementation
 
I need to reverse the order of the following message in the textBoxl when button I is clicked. "Good Morning" -> "gninroM dooG" Consider that a Stack class is...
[1 reply] : Push all characters in order to stack. Pop characters and display them... (by MiiNiPaa)
Question about QT Framework
 
I am brand new to working with frameworks and I just finished watching a few tutorial videos on QT. QT seems great and all but I feel like it's forcing me away ...
[7 replies] Last: .... wish C++ had its own integrate GUI Library C++ only concerns ... (by TheIdeasMan)
number pattern
 
I want to make this pattern using only for loops. (The asterisks represent spaces) 1 2 3 4 5 5 4 3 2 1 1 2 3 4 ***4 3 2 1 1 2 3 ******3 2 1 1 2 *********2 1...
[2 replies] Last: We will not do your homework for you, post the code that you have writ... (by Outlaw782)
Constructor Question! D:
 
Not sure what the issue here is but I can't get the code below to compile. I think it's an issue in my Constructor but can't seem to figure out what's going on ...
[1 reply] : Solved: Person(string z) removed Modified Person(string x) to: Pe... (by Outlaw782)
random number generator
 
Hi everyone, so I'm writing a code for class that requires me to create two input files that reads in 50 numbers each from a random number generator and output ...
[2 replies] Last: Yeah on some level I knew that but in classed my teacher talked of a w... (by just icyy)
Hugeinteger
 
Hello everyone. Right now I'm writing a Hugeinteger class using single linked list structure with a head pointer as a first element. Anyway I'm having troubles ...
[4 replies] Last: It concerns the.very algorithm. Then perhaps you should describe th... (by cire)
Derived/base find
 
Hi guys, I have this project to do, and approximately no idea how to do it. I can start it, but I honestly have only a slight grasp on how this program is supp...
[2 replies] Last: working again: no errors but doesnt allow input for anything beyond te... (by dummy101)
by mr103
Need help with Brownian motion
 
I was given an assignment with four parts, and one of the parts was to generate Brownian motion. How would I go about doing this? By the way, this is my code s...
[1 reply] : Please use the code tags for your code. HINT: Edit your post, highligh... (by chicofeo)
Display Employee Record Having Maximum Salary
 
#include<iostream> using namespace std; /*Employee class declaration*/ class Employee { int id; char name ; float sal; public: void input(); voi...
[1 reply] : Duplicated post. http://www.cplusplus.com/forum/general/176495/ Pleas... (by chicofeo)
Arithmetic Problem Solve
 
Suppose we have digits 1 2 3 4 5 6 7 8 9 and arithmetic operators +, -, and *. Write a program that finds a formula that evaluates to 100 by inserting opera...
[1 reply] : Your expression evaluates to 35, not 100 I never tried this problem, b... (by ats15)
October 2015 Pages: 1... 910111213... 27
  Archived months: [sep2015] [nov2015]

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