Beginners - May 2013 (Page 56)

conjunction two vectors
 
Hello, I want to conjunction two vectors, but when I try to write result on the screen I get result without int number, which is in Two<T>. I want to get result...
[3 replies] Last: Ah, I missed that. x is storing objects of type One<string> and can't ... (by Peter87)
...compiling error in my code....
 
hey every one.. I have tried my code but it has some errors and mistakes!!!! any one could help me solve this problem,,,please resend the code with correction...
[4 replies] Last: No way. You are the beginner. You deserve the opportunity to practice ... (by keskiverto)
Compiling for Arduino Uno R3 problem
 
I have just started learning C and compiling programs for Arduino Uno. Although some successes with LED control programs from supplied kit, I have a problem wit...
[no replies]
Problems using strings
 
I'm trying to make a function that makes you print the same sentence 5 times before you can move on. But basically my problem is that depending on how many word...
[2 replies] Last: Thank you (by LichTim)
Trigonometry Calculations Assignment
 
Hello ya’ll! I need your help to help me with my assignment. Just like the previous assignment, I have an extremely difficult time completing all of my HW so ...
[6 replies] Last: OK then, I misunderstood. I thought perhaps it was Visual Studio which... (by Chervil)
by stdeez
destructor for linkedlist
 
i need to create a destructor for this class class LineEditor { // class to model the functions of a line editor public: LineEditor(); ...
[1 reply] : LineEditor::~LineEditor() { LineNode *current; LineNode *prev... (by MiiNiPaa)
Problem with a do while loop
 
Hello, I'm trying to work this out. I can't find any answers specific to this problem, and I'm not a C++ Guru so I don't know all the different ways of getting...
[4 replies] Last: Okay, I got it worked out now. For reference in case anyone is wonderi... (by Daniel326)
check my code and tell me the mistakes and how to fix it
 
check my code and tell me the mistakes and how to fix it #include<iostream>//required for cin and cout #include<fstream>//required for ifstream #include...
[2 replies] Last: Please don't do duplicate topics. It's annoying because people ask que... (by TheIdeasMan)
Defining arrays for classes
 
I know this is a stupid question, but for some reason I can't find the answer to this. How can you define arrays when defining a class object? Example Code: ...
[5 replies] Last: Thank you for taking charge on this vlad. I feel dumb for not realizin... (by Daleth)
Need help with code for data type in function
 
My question is what data type should I use to get the miles_per_gallon to show only four decimal places? I have tried int, double, and float and they all give ...
[3 replies] Last: That page has an example. (by keskiverto)
by Yoda
Easy program weird returns, need advice (Very simple)
 
Easy code returns crazy numbers, only allows me to enter 1 variable. I will continue to work on this and it's probably easy, but for now bed soon. Just tinke...
[4 replies] Last: Yeah .. you can now tell 100% this was so easy. My solution to this pr... (by Yoda)
by AprilC
Drawing some lines.
 
Hey guys does anyone know a simple function to draw out random lines without graphics.h? Im trying to draw six randomly places lines as output any suggesttions ...
[1 reply] : Stand() rand() std::cout "--------" (by giblit)
Inventory Program without class
 
I'm trying to write a program that uses a structure to store the inventory data and then manipulate them using a menu with the following tasks: 1. add new ...
[4 replies] Last: Yeah i don't know how to make the call function open the same file. It... (by brianit41)
by jehudi
DELETING A NODE FROM THE END OF LIST
 
HI EVERYONE. I'M TRYING TO DELETE FROM THE END OF A LINKLIST Actualy I delete the last node but the problem is that I lost the end of the list, in other words ...
[no replies]
2d array help
 
Hi there! I am trying to write a program that generates 6 random lines in an 80X20 2d array. I keep getting the error "macro "arc4random_uniform" passed 1 arg...
[2 replies] Last: Im also working on a very similar assignment and Im fairly new to C++ ... (by AprilC)
Using arrays for math calculations
 
Hi Everyone, I have to use an input.txt file to read a student's name three program scores and three test scores. From there I have to output their name, progra...
[10 replies] Last: God this class will be the death of me hahaha. Thank you so much I got... (by nfordhk)
how to keep only 2 rows of matrix
 
How can I keep just 2 rows using modular arithmetic at the time of 2 D array, meaning I do not need to store the entire table, since I have a lot of items. This...
[5 replies] Last: thank you (by SoftDisk)
Final Assignment problems.
 
This is my final assignment for my only programming class, so of course it would be very long lol. It has several issues that do not come up when the programs r...
[10 replies] Last: Thank you. (by geharbison)
Problem referencing methods in header file
 
I am using Visual Studio 2010 and keep getting error C2660 for the following code. I am using 2 header files. One called cashRegister.h and one called dispenser...
[5 replies] Last: If the code you showed for the cashRegister header file is all that is... (by Daleth)
Copy part of a string
 
So I want to copy characters from a string into a second string until there is a space. For example, the first string would say "Hello World" and after the loo...
[5 replies] Last: Thank you so much. For some reason at school I never had to put a null... (by nix8311)
May 2013 Pages: 1... 5455565758... 66
  Archived months: [apr2013] [jun2013]

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