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

NEED SOME HELP !!
 
Ok so the task is to ask the user for a letter and then display weather that letter is a vowel or consonant then ask the user if they would like to continue (y/...
[5 replies] Last: I got it thanks guys it works good now! (by brasile)
Computational Complexity
 
Hello everyone. I want to study algorithms, but firstly I need to be able to do algorithm analysis and be able to find a random algorithm's complexity (Big-Oh, ...
[9 replies] Last: @ Duoas Thanks again, very helpful!! :) (by jumper007)
File pointer not moving to the end of the file
 
I'm trying to move the File Pointer to the end of the file (check.txt) at line-13. But doesn't matter how many times I run the program out put always comes as ...
[no replies]
Problems with my custom "Array" class
 
Hello! I am currently working on a custom "Array" class for a project, and I have run into an error I don't quite understand the source of. The relevant c...
[2 replies] Last: Ah, I see now! Thank you for the help. (by RotatingAxis)
by Nebur
Recursion to loop using stack, very simple code
 
Hello, I want to convert the following program into a non-recursive code using a stack and a loop: void write(int n) { if (n>0) { write(n...
[2 replies] Last: Thanks a lot for your help anyways :) (by Nebur)
std::result_of
 
#include <iostream> #include <type_traits> int f(int) {return 2;} int main() { typedef std::result_of<decltype(f)&(int)>::type A; } Can som...
[1 reply] : > why typedef std::result_of<f(int)>::type A; does not compile? f... (by JLBorges)
by Glaven
Random Number Generator and Average Help!
 
Hey , i need to create a program that has has an array size of 20 and will generate 20 random numbers in it between 1-1000. Then I need to calculate the average...
[2 replies] Last: could you help me on how to do that? I have no idea on how to do it. (by Glaven)
Opening & Reading files with Input/Output
 
Alright so I've been holding off on asking for help because I like figuring stuff out on my own, but this I just can't get working. I'm in a CIS 143 class which...
[1 reply] : You have to read what's required, and just do that. There's nothing a... (by kbw)
Identifying cause of deleting released memory
 
I have a particular class hierarchy that is causing memory to be released twice. What seems to be the problem is the following section of code: void FOO...
[7 replies] Last: A memory that is released twice usually hints at a wrongful copy ... (by coder777)
Help
 
I am given an assignment to make, here the question is. Write a program to take two numbers and a character as an input. Ask the users at run time to print lar...
[3 replies] Last: No problem :) (by coltehrman)
by yo2xia
SSE value calculated in C++ eigen is different from true value
 
I am a beginner of C++. Any help will be very appreciated! I can successfully compile and run the following code: #include <Eigen/Dense> #include <iostre...
[2 replies] Last: @MiiNiPaa thank you, i have got the answer. MatrixXd is more precis... (by yo2xia)
NEed help with my homework. Almost complete
 
What can i change in my code to make this run accordingly? using VS2010. The population of a town A is less than the population of town B. However, the...
[1 reply] : First of all, formatting the code would have given line numbers and ma... (by tipaye)
When System sleeps/hibrante ?
 
i am looking way to make a text file in windows. if system goes to sleep or hibrante mode then make a text file What apis should i use? Thanks.
[1 reply] : http://www.google.com/search?btnI=1&q=msdn+SetWindowsHookEx http://www... (by Duthomhas)
fixing the sequence of display without rearranging the defined string
 
hello. when i run this program the sequence of the message was reverse.can you help where did i go wrong?? #include "iostream"[ #include "time.h" #include "...
[1 reply] : Did you write this code yourself? (Because if you did, you ought to kn... (by Duthomhas)
error, convertion into COFF, visual express
 
hey guys. my name is daniel, and im a new member of this forum. im a student of mathematics, so i dont know a lot about programming yet, but i should learn so...
[2 replies] Last: hey Observer. its working now! =) thy ========== Build: 1 succeeded, ... (by xiaoshitourasputin)
Display vector
 
I need help displaying my vector in c++. my code is below and search for: I WANT TO DISPLAY MY VECTOR HERE my vector is defined as: vector<Carnivora> List...
[3 replies] Last: are you doing this to teach yourself about templates? If not then don'... (by mutexe)
Custom "String" class problem(s)
 
Hello! I am currently working on a custom "String" class in C++ for a project. When I just use ONE String, it works fine. However, when I try to create an...
[5 replies] Last: Thank you, I got it working now. (by RotatingAxis)
Lvalue and Rvalues
 
can anyone halp me with this id2=toupper(getche()); //id2 is a char //it has an error that says lvalue required //can anyone help me ?
[2 replies] Last: Please, show some context. int should be perfectly convertable into ch... (by MiiNiPaa)
by Noori
nearest neighbor
 
In this project you are asked to find K nearest neighbors of all points on a 2D space. The distance metric that you are going to use is simply the Euclidean di...
[12 replies] Last: 10 is the number of points in coordintates and 2 is the number nearest... (by Noori)
Switch statement not working! MUCH FRUSTRATION!
 
/*Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numberal version of t...
[7 replies] Last: Please, show me how to get 10 in a single char. Only his problem was q... (by MiiNiPaa)
October 2014 Pages: 1... 1920212223... 38
  Archived months: [sep2014] [nov2014]

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