Beginners - November 2015 (Page 24)

by fawie
cant figure out how to struture this
 
2) Write a program that will allow you to enter 4 separate numbers. The code should be able to do the following: a. Add the first 2 numbers b. Subtract the t...
[4 replies] Last: thanks ...well that's the part i need help with. i dont know how to in... (by fawie)
by skilly
Nested dependency-loop classes
 
I am sorry if this question has been asked before, but I am not sure how to word what I am trying to do. I think the code makes it clear: namespace sys...
[no replies]
Code Not taking string
 
When i start the program it successfully asks for the "identifier" variable, however when it gets to the getline it just skips it and ends the program #...
[7 replies] Last: getline() isn't necessary ... #include <iostream> #include <string... (by closed account 48T7M4Gy)
loop and string length issues
 
Write your question here. #include <iostream> #include <string> #include <vector> using std::cout; using std::cin; using std::endl; using std::st...
[1 reply] : One thing is that you should make your vector a reference in the loopi... (by koothkeeper)
Printing right-aligned triangle with descending numbers
 
I'm trying to figure out how to create output which looks like this. 1 21 321 4321 This is the code I have right now. 'base' is user-defi...
[2 replies] Last: ah okay. I rearranged some variables and got it to work. void displ... (by claivin)
help with morse decode program
 
hi im writing a program to decode a morse code message. my program compiles without any error but nothing happens when i enter my code to be decoded. i think th...
[5 replies] Last: The command: cat input | main is a way to run your program on U... (by koothkeeper)
Having trouble with verifications
 
So i want to make sure the input is only a int and it is not trailed by a character. I am up to functions in my intro class so no even moderately advanced stuff...
[1 reply] : Please edit your post and add code tags. I am up to functions in my ... (by jlb)
Generic class
 
Help me brother . i have made a class like this template<typename t1, typename t2> class Set{ private: t1 key; t2 value; public: Set(t1 k,...
[3 replies] Last: What is the complete error, all of them? There is important informatio... (by jlb)
Why does my code crash my program when I change one value? [C++]
 
I wrote a program for an assignment that takes pixel values and negates them with a 2D array. The 2D array parameters are controlled by a const height variable ...
[2 replies] Last: Looks like I must have overlooked that for the ImageJ array, it works ... (by closed account oN3h0pDG)
by Arquon
How to take out numbers out of interval ?
 
Hello, I have an interval of 'a=5' and 'b=8'. I need to print out all possible scalene triangles sides lenght. How can I take out number 'c' of that interval an...
[2 replies] Last: It worked ! Thank you very much :) (by Arquon)
by doon
classes
 
Part 1: Write a class called (Student) which contains the following data members: - Private members: • First name (as a string). • Last Name (as a strin...
[3 replies] Last: Why do you have a constructor with arguments? Your assignment only spe... (by jlb)
How should I use opengl and glut to translate object
 
Hey guys, I'm making a small 2d game using c++, OpenGl, and Glut. I need help using a class to create objects and then using display() to translate them on t...
[5 replies] Last: Pseudocode: allwalls.display_wall(); If you want that syntax, you wil... (by Kevin C)
Using priority_queue
 
Hello, i have some objects that I would want to keep in a priority, my question is how to make them in order by a specific value from the object how do I mak...
[6 replies] Last: thanks Zhuge (by Edward01)
Determining outputs
 
Please explain to me how to solve: Line 4: In main: num1 = _______, num2 = _______, and t = _______ Line 11: In funOne: a = _______, x = _______, z = ______...
[no replies]
by Zoza
Can you please show me how to write a code based on the format
 
The file comprises a list of US stock symbols and their prices from the period 2000-2015. How to write a program that allows: 1- one to read the content of the...
[1 reply] : Please don't double post. http://www.cplusplus.com/forum/general/1789... (by MikeyBoy)
by KMagic
[Read binary file] - Last chunk of bytes read twice
 
Hi everyone, I wrote a template function for reading binary file. I also got a binary file which contains a sequence from 1 to 10 (int number). Assume that I d...
[4 replies] Last: Agreed since while(file) will check for all stream errors not just e... (by jlb)
Using Time Function !?
 
I am confused ! Please help me to solve this question ... Q: Use the time function from this code to generate 5 Beeps every 10 Seconds for 3 Times. ...
[2 replies] Last: Don't care about the code. I want only to know How To generate 5... (by Beginner Student)
by kalki
How to write unit tests to test individual functionality in C++ classes?
 
How to write unit tests to test individual functionality in C++ classes?? Explanation with simple example would be more helpful. Thanks in advance
[5 replies] Last: you need to write a separate application that will test the classes, t... (by Jaybob66)
Heap vs Stack
 
I'm writing a recursive function (for IDS/DFS algorithm), and using dynamic stack to save the nodes, which being initialized everytime I enter the function afte...
[4 replies] Last: deleting the allocated data is one thing. I also wonder if your recurs... (by liuyang)
CALLING THE FUNCTION (Decoding a barcode) PLS HELP !
 
Hi , i apologize in advancing if i posted in the wrong forum... I currently working on a project to decode the barcode and extract out the information. My sup...
[2 replies] Last: Perhaps a few links to the libraries you're trying to use might help. ... (by jlb)
November 2015 Pages: 1... 2223242526... 53
  Archived months: [oct2015] [dec2015]

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