General C++ Programming - October 2013 (Page 40)

by NSA
Could you help me?
 
Hello all, I'm new to the language C++. Recently our teacher asked us to write a code that does the following things: 1 - Remove all comments from a file...
[no replies]
math program
 
Im trying to write a program to allow a grade to be entered then present a math problem of varying difficulty. The higher the grade the harder the problems are....
[no replies]
Performance Optimization
 
What optimizations can be done so that this code runs much faster for the following input? This version takes > 20s, about 26s on my machine. 1 18 1999999871 ...
[6 replies] Last: Thanks, I will try that. (by th3w4nd3r3r)
why the result is always the same
 
i dont know why but the result of my program is always the same.. can someone help me? heres the code: #include<iostream.h> #include<conio.h> #include<tim...
[6 replies] Last: thanks (by Byakuran)
Game programming: C++ vs Java
 
Hello! I am doing college of technology in digital games and would like to know why it is easier to program games in Java than in C ++? We learned the basics ...
[5 replies] Last: Thank you for the answers,they are very enlightening! After finishing ... (by romulosd)
.
 
...
[5 replies] Last: Please do not remove your posts. It is rude and there might be people ... (by MiiNiPaa)
Always says do not and do buy if r1t = 3
 
My code is #include <iostream> #include <string> #include <cmath> using namespace std; int main() { int r1; int r2; int r1t...
[10 replies] Last: @Austin J Have a look at the Google style guide link I posted. The m... (by TheIdeasMan)
Template non-member function friend
 
Im getting an error saying a4.cpp:47: warning: friend declaration `Vector<T> operator+(const Vector<T>&, const Vector<T>&)' declares a non-template function ...
[1 reply] : a declaration of a template begins with the word template . You can... (by Cubbi)
operator overloading error
 
Hey fellas (and ladies?), sooooo given the following implementation, I'm getting the error below: friend bool operator< (const intEntry& lhs, const intEntry...
[4 replies] Last: when operator overloading, it may be a member function if you have one... (by Emad Said)
[PROBLEM]What is the method to test correction of Obfuscator Program?
 
Hi there, I have problem on how to oracle testing on obfuscator program~ Anyone have any idea? I only know the Metamorphic Testing.
[6 replies] Last: Have to test the correctness of the obfuscator program...just need som... (by xNiGhTwlnGz)
functions and pgm help please!
 
Hey guys can you help me please! I am trying to write this code but I am having the hardest time. I suppose to add three functions and their prototypes. This pr...
[no replies]
seeding rand and arrays help!
 
Hey guys I really need some help. I am suppose to generate the array of numbers using rand( ), instead of prompting the user for the values. Add a function to c...
[10 replies] Last: Thanks JLBorges I got it to work. Your my fuckin nigga man! Heres the ... (by Totes my goat)
by Ceset
being a good programmer
 
hi everyone. i m a two months beginner at programming i m working so hard to be a good programmer. almost all of my free time :D and i want to be a good progr...
[6 replies] Last: yes thats sth i have realized and it is so good (by Ceset)
by LB
How to make a class final (oversolved)
 
Just mark the destructor final: http://ideone.com/qrBDwH Problem solved. Well, sort of - my question is, since the destructor has to be virtual in order ...
[9 replies] Last: Wow, thanks Cubbi! I had no idea. (by LB)
A command that does nothing in c++?
 
Does anyone knows a command that does nothing in c++? I mean - a command that the compiler reads and ignores, for example, if I want to execute the following p...
[5 replies] Last: Note: I know I can simply do temp=temp or something, but that's not w... (by TheBeardedQuack)
hope you can help
 
hi there, im learning C++ and Java in tandum, this is a java question but i trust you guys so much i dont want to have to sign up to a new forum to get an answe...
[1 reply] : i finally fixed it, thanks anyway import javax.swing.JOptionPane; pub... (by tobougg)
by Karpl
Problems with Microsoft Visual Studio 2012?
 
I'm unsure if this would be the right forum to ask this in, but it's been frustrating me to no end and it constantly happens. I make a simple test program an...
[no replies]
by jaded7
Calling const/non-const overrides
 
Hi, are there other ways of calling a const/non-const override? I want to defined some functions in terms of others, particularly accessors which might or might...
[10 replies] Last: For operator with usual semantics, non-const overload doesn't modif... (by Cubbi)
by Ace93
seg. fault
 
got segmentation fault for this class istream &operator >> (std::istream &in, const Simple &simple) { in >> simple.val; return in; } The clas...
[3 replies] Last: wow i dont know how i missed that basic mistake. Thanks. (by Ace93)
by matttm
Cannot find directories
 
I've been so frustrated these past few days. http://i818.photobucket.com/albums/zz107/mattttm/screenshots/untitled_zpsa6bbc795.png I've been getting the...
[6 replies] Last: You're a genius, naraku9333 ! (by matttm)
October 2013 Pages: 1... 3839404142... 46
  Archived months: [sep2013] [nov2013]

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