Beginners - October 2013 (Page 27)

by layzer
Sorting Array, finding min, max.
 
Howdy all, i need to find the the min, max, variance, deviation of 16 numbers, and display the numbers entered in 4 rows of 4 numbers. I got everything to work ...
[3 replies] Last: #include <iostream> #include <cmath> using namespace std; int main(... (by layzer)
Determine if a relation is symmetric
 
Hello all I am having trouble writing a function that will determine if a relation is symmetric. Any tips as to what I am doing wrong would be greatly appreciat...
[2 replies] Last: Any tips as to what I am doing wrong would be greatly appreciated. C... (by Danny Toledo)
DMV Exam
 
Hi, this is my Driver's License exam program. All of the errors my program is throwing in my face are listed in the main() function of the program. I can not, f...
[1 reply] : Line 75: You're declaring an instance of TestGrader with no arguments... (by AbstractionAnon)
Calculate Tensions in Cables
 
Honestly I am yelling for help. I am really lost and frustrated. I just don't understand C++. Determine the Tension of each of strings. Website : ht...
[1 reply] : It's easier for us to answer specific questions, as opposed to "walk ... (by xismn)
by Ratham
Intersecting 2 Vectors?
 
I have 2 vectors & I'm trying to make a third that only contains the similar elements between them. Example of what I'm going for: (Not formatted properly, j...
[1 reply] : No one is going to write your code for you. The example at the follow... (by norm b)
Reading and writing to a file that you don't know the name of?
 
I was wondering if it is possible to find the title of a .txt without it being coded into the program. So if I have 2 .txts in the same folder as the .exe, how ...
[1 reply] : You'd need to ask the OS via some API it gives you or use a wrapping l... (by Zhuge)
Stacks and Queues
 
Alrite, can anybody please elaborate more on the two concepts mentioned above or if there are any good websites to gather information related to these topics.....
[2 replies] Last: Yes I did, but since this site is just overflowing with knowledge of p... (by willynilly)
volatile
 
Can someone give me an expample when you realy see the effect of volatile keyword? thanks
[11 replies] Last: Man this is so much beyond my understanding ,I'll opened this thread l... (by closed account 28poGNh0)
by Ratham
Vector find algorithm not working
 
I'm trying to make a program that reads a text file line-by-line, breaks it up into words, and checks a vector to see if the word is already in the vector. If t...
[4 replies] Last: So my eyes/brain have failed me. Stuff complies now, will mess around ... (by Ratham)
some info about less,greater and pair
 
map <int, int, less<int> > m1; map <int, int, greater<int> > m1; pair<int, int> /// I kinda need some info about less ,greater and pair thanks for rea...
[4 replies] Last: I am lazy ,and I am sorry , and thanks for teaching me that (by closed account 28poGNh0)
Structs in Classes
 
Is it possible to create structs in classes, and then inherit from another class. I mean the class, to inherit from another class with the struct still intac...
[2 replies] Last: THANK YOU VERY MUCH (by willynilly)
advance problem 01
 
int main() { map<int,int> myMap; map<int,int>::iterator iter; myMap.insert(pair<int,int>(1,2)); myMap.insert(pair<int,int>(3,4)); myMa...
[9 replies] Last: So I think I conculde this topic by saying that in c++98 the only way ... (by closed account 28poGNh0)
Infinite rand
 
So, problem is with this code #include<iostream> #include<stdlib.h> #include<time.h> using namespace std; int main() { int i,j,a ; ...
[8 replies] Last: Thank you. Both of you. So, I had to edit as you said >=0 and in line ... (by Keiji12)
Program crashes!
 
Hello fellow programmers! I am currently working on Michael Dawson's book: C++ Game Programming - Beginning. I have an exercise that says: "Write a program usin...
[12 replies] Last: Okay, thanks. (by minuss273)
Errors
 
There is 1 error1 Distance is not defined but why distance has been defined in constructor too #include<stdexcept> #include<conio.h> #include <iostrea...
[6 replies] Last: thank you (by Sharan123)
error: expected primary-expression before '*' token
 
i am getting an error that i cant figure out; nothing from google and textbook is useless for this. the error comes from this function: std::string ldu1...
[8 replies] Last: ok ok i got it. thanks so much! love this site!! (by density)
Sin function without using <cmath> sin()
 
Hey, A portion of my assignment has me stuck, we've been asked to calculate the sin function without using the <cmath> command sin(). We were given an exampl...
[no replies]
Find second largest number in array
 
Hello, i need to find second largest number in array. my txt file 5.7 -1 8.6 9.2 15.3 17 And I dont understand how I need to do it? Here's my code but I find...
[2 replies] Last: Could you write this code? (by deividas717)
Where to start? - Graphics.
 
Hi there. I am a 15 year old programmer with very little experience. I started programming C++ 4 days ago, and I want to make games. In the future, that is. It ...
[4 replies] Last: In addition, if you're looking to make video games then know this, you... (by Uk Marine)
files
 
i want to put two integers output in two different files how i can do it?
[1 reply] : open first file, write first integer to it and close it. do the same w... (by rodiongork)
October 2013 Pages: 1... 2526272829... 86
  Archived months: [sep2013] [nov2013]

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