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

Binary Search Tree help
 
Hello, I am fairly new to C++. I am not going to lie and say this is not an assignment. Iam sorry for doing this, but I have been working on it for almost a...
[no replies]
How to overload [] operator to write for a class.
 
How would I overload this operator so that it will work for my class. eg class String { public: //constructors. //default constructor. String(); ...
[4 replies] Last: Interesting. Thanks (by zoran404)
by krad23
Function that returns the max of a variable number of scalars
 
I need to create a function that takes as an input a variable number of scalars and returns the biggest one. Just like std::max() does for 2 elements, but I nee...
[8 replies] Last: #include <iostream> #include <string> #include <type_traits> templat... (by JLBorges)
Finding max and min from integers in text file
 
Hello I have a predicament trying to read integers and placing them into an array and finding the max and min. Theres 500 of them and all separated by line: ...
[2 replies] Last: I hope it will help you http://www.cplusplus.com/reference/vector/vec... (by Observer)
UNIT
 
in my exercise, i found that there is a new datatype called "UNIT", i wonder whether it is unsigned int or not???
[11 replies] Last: i typedef it and it run nomally (by nightmaregiba)
Creating a Program to Search an Index File Using the Command Line in Linux (1,2)
 
I have code that creates an index file created from a data file of records. #include <iostream> #include <fstream> #include <map> #include <sstream> #...
[28 replies] Last: Never mind, I'm dumb. Fixed it and it's working perfectly now. Thank y... (by HiTechRedneck3)
someone please help me! (1,2)
 
I don't want process to arrive into the device (printer, disk, cd/rw) if no processes exist, like if A hasn't been pressed yet, or t was pressed and all process...
[24 replies] Last: Are you trying to simulate the scheduling queues in a computer? You d... (by pheininger)
by nived
Reading integers from file and storing into array prob.
 
My main issue is that when I store just one value into a simple integer variable, it gives me a big negative number. My goal is to store a file that reads like ...
[5 replies] Last: Ohh, found it out. I wish my teacher actually went over this haha. I h... (by nived)
Print 10 Integers per Line
 
The code I have is below. Im able to print them all onto one line but I need to print 10 per line separated by commas and Im not sure how to do that ): ...
[1 reply] : Basically check if the current is 10th and if true put a newline after... (by Jezze)
by judo11
How do I sort names and grades in C?
 
How do I sort names and grades in C from highest to lowest? John 91 Joseph 92 Mary 93 Jake 94 Sorted Scores from highest to lowest Jake 94 Mary ...
[2 replies] Last: http://stackoverflow.com/questions/6105513/need-help-using-qsort-with-... (by keskiverto)
linked list copy constructor help!!! urgent
 
Here is my code it runs but after display result, it announce error template <class T> class LINKED_LIST { private: struct ListNode { T data; ...
[2 replies] Last: it run!!! (by nightmaregiba)
Application tab in Window Task Manager
 
I just want to know 1)does task manager application tab always shows those applications which have windows? 2)if yes then this tab maintains a list of those ...
[no replies]
help decode
 
Can someone try to explain this step to step? #include<iostream> #include<ctime> #include<cstdlib> #include<iomanip> using namespace std; void func(int ...
[1 reply] : 01 02 03 05 08 13 21 34 55 89 01 01 01 02 03 05 08 13 21 34 Basica... (by poteto)
Running Program/Applications APIs?
 
Hi all I am searching for a way/api through which i can get list of Applications as showing by task manager inside Applications tab. Is there any way? Than...
[3 replies] Last: Thanks both of you mutexe and ahcfan. i did lot of googling on the sa... (by IamSumit)
Reading values within set range
 
Is there a way to read values within a set range in c++? For example, if you have a,b,ab,ac and you want to read the characters between the parentheses store...
[no replies]
by nomnum
Random If statement returns!
 
Hey everyone! My code to a specific function is below. As a foreword: The goal is very simple. tile, which is a global integer that is assigned from a rand...
[4 replies] Last: Gotcha. Thanks for the information and hastiness! Much appreciated. (by nomnum)
Store address of objects...
 
Hi at all! I'm new on "game programming". And I might say that I am a newbie! I'm using the SDL library and trying to match the C++11 standards... Anyway, I tho...
[1 reply] : Just a little thing first: Rather than your manipulation of size that ... (by TwilightSpectre)
Algorithm for C++
 
Your program must allow the user to input values for n, a, x and c. Your program will then perform the calculation, output the result and ask the user if they w...
[5 replies] Last: Step 1: Start Step 2: Declare variables a, b, c, D, x1, x2, rp and ip;... (by jxm9459)
Still not getting it
 
If I am to write a client function that computes the sum of integers in the aBag, is an array used if I do not know how many items, or what the items are? A...
[2 replies] Last: THANK U CODER777 (by dgriffin66)
linked list copy constructor
 
is my copy constructor for linked list right?? LINKED_LIST<T>::LINKED_LIST(const LINKED_LIST &aList) { ListNode *p1 = head; ListNode *p2 = aList.head...
[10 replies] Last: Generally the code looks pretty good. I do have a couple of comments,... (by doug4)
October 2014 Pages: 1... 45678... 38
  Archived months: [sep2014] [nov2014]

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