General C++ Programming - January 2016 (Page 12)

Code::Blocks - doesn not display a program
 
Hello. I must point out that I don't speak English very well and thanks for your understanding. I have very big problem and I can't make a programs. I use Cod...
[2 replies] Last: But where should I do it? If you could tell me where, I will do screen... (by Lich555)
What could i add to this program
 
#include <iostream> #include <string> using namespace std; int main() { string password = "billy"; string username = "billyeastep9"; string useri...
[3 replies] Last: This way - http://bfy.tw/3gnD Also works with youtube. (by TarikNeaj)
by cang
Truncating values
 
When I call these two functions to calculate the mean and standard deviation, my standard deviation is off by a little bit. I think it has to do with my values ...
[2 replies] Last: my standard deviation is off by a little bit Can you give an example... (by dhayden)
by zoda
Writing a program that determines if the product is even or odd.
 
Write a program that asks the user for two integers. The program will then multiply the two numbers and determine whether the product is even or odd. Next, add ...
[2 replies] Last: Its not that hard to type "if statements c++" on google. If you are mo... (by TarikNeaj)
by Rusko
My First Thread :)
 
Hi i am started a structured programming class which leads into an object-oriented programming (oop) course next semester - the oop one after that. i am extre...
[2 replies] Last: Before computers, people used slide rules to compute functions like th... (by dhayden)
How to work excel into c++
 
Hi all, I'm trying to read in an excel file with data size 20x2. However, when i read in the file it reads every line in the workbook. Is there a way ...
[7 replies] Last: Hmm @TarikNeaj didn't know that, but thanks for the clarification on i... (by MattBess)
Unresolved external symbol, overloading operator== in my class
 
Hello. I'm making a static library. I have a GString class in which I overload some operators (<<, =, ) I'm now trying to overload the == operator, but I get...
[6 replies] Last: That's strange, i can't understand why. I have a bunch of operator ov... (by gedamial)
Build errors // Build fail
 
When i try to debug this project i get the following message: <img src=http://postimg.org/image/denjh3gfl/ alt="error 01"> Then i click yes and then get this...
[5 replies] Last: You dont like screen captures? Yes, we dont. What is openGL used ... (by TarikNeaj)
by Kubani
Issues on using operator<< for templates
 
Hello, I'm new in using templates and also overloaded operators for them. This is my simple code. I tried to write an operator<< for the type T , but faced ...
[13 replies] Last: Thank you very much guys. (by Kubani)
Peculiar code behavior!
 
Hey guys! I have two versions to represent the node of a linked list: a struct template and a class template, as shown below: template<class elemType> struct ...
[4 replies] Last: Thx ne555 ; I really appreciate your answers/explanations to the ques... (by geeloso)
All Combinations of perfect Squares in a number
 
Find all combinations of perfect squares and give the one with the least amount of numbers Index representing (i+1)^2 13 could be represented as: [0,1,1]...
[1 reply] : I can't tell if this is a spam thread or not. Incase it is not. Ok? D... (by TarikNeaj)
Least squares fit code for quadratic polynomial
 
Hello, I am looking for a fast C++ code (or c code will do) that does least squares fit using a quadratic polynomial in 1 variable. I would prefer a self contai...
[7 replies] Last: Some suggestions: - Since you're raising numbers to integer powers, yo... (by dhayden)
Best language for Telecommunications engineering
 
hi i'm studying Telecommunications engineering (Electronic & telecom ) please, can you help me to choose the best language that help me in my study ( i was l...
[4 replies] Last: Taking a step back, languages are languages. You should concentrate of... (by dhayden)
Address instead of Strings ?!?
 
Can someone please tell me why this code is giving me the address instead of the strings?? I'm using dev c++. It compiles fine no problem, but instead of givi...
[8 replies] Last: cool thanks. u rock man! (by Samuel Onate)
Constructor and Copy Constructor parameters conflicting...
 
Hello. I'm making a Linked-List class template<typename T> struct Link { T val; Link* next; }; template<typename T> class GList { p...
[3 replies] Last: Thanks guys =) (by gedamial)
Data Analysis Videos?
 
Can anyone point me to any video series that go over data analysis methods and coding in c++? Thank in advance!
[2 replies] Last: Thanks, but that not what i'm looking for. I'm looking for videos sho... (by closed account 9yq5oG1T)
Please explain how this program working?
 
#include<iostream.h> #include<conio.h> #include<string.h> class strings { char s ; public: strings() { s ='\0'; } strings(char *c) { strcpy(s,c); ...
[9 replies] Last: [quote=MikeyBoy]Please use code tags when posting code, to make it rea... (by MikeyBoy)
Char** to char*, possible?
 
Hello everyone. I am a newish c++ programmer. I currently have a char** which holds a collection of passwords. This char** is created dynamically as i dont know...
[3 replies] Last: @heepoo Since passwords is char * the cast is unnecessary: cha... (by coder777)
Im having a problem with some of this code
 
I am getting the error comparison between distinct pointe types std::string with this code if(energy <= gymc3){ cout << "If you work out any further you...
[5 replies] Last: Well, that's why there is a Read before posting - http://www.cpluspl... (by TarikNeaj)
What storage duration does member variables have?
 
I thought member variables have automatic storage duration because they are automatically destroyed when the parent object is destroyed, but when I search I fin...
[2 replies] Last: Ah, I guess I have been thinking about storage duration the wrong wa... (by Peter87)
January 2016 Pages: 1... 1011121314... 18
  Archived months: [dec2015] [feb2016]

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