Beginners - April 2016 (Page 9)

Please explain the file .hpp?
 
When I create an interface file and implementation file, there is another file .hpp is automatically created. Can someone explains for me what is that file fo...
[no replies]
Help me understand vector and matrix calculations
 
Hey guys This question is a complication one. It's all about adding / Subtracting and multiplying matrices and vectors in c++. These are the questions: ...
[no replies]
How to create source file and header file in Xcode?
 
Someone please help! I have just learn about class. Now I want to make that class become a library in which I can use in a program. I do not know where in the ...
[2 replies] Last: When I create an interface file and implementation file, there is anot... (by LDbunny)
Program stops responding
 
I don't have any code for this yet. I'm trying to store information from a text file into two separate arrays. The text file is 5 rows and 8 columns with the fi...
[2 replies] Last: So that helped a little thanks but now whenever I build and run it the... (by g0ldt1g3r)
by awc06
Array and function game
 
I have been working on this for 2 days and I am just so lost. I really need help. Here is what I need to program. I am using Spanish instead of Chinese. We are ...
[6 replies] Last: I am a little confuse on what line 1 means. (by awc06)
Is my answer to this C++ question correct?
 
what are the final contents of a queue "MyQ" after the following sequence of operations run. MyQ.push_front(13); MyQ.push_front(14); MyQ.pop_back(); MyQ...
[1 reply] : Asked and answered: http://www.cplusplus.com/forum/beginner/189662/#ms... (by AbstractionAnon)
array must be initialized with a brace-enclosed initializer
 
Hi forum, i dont know how to fix some errors. I try more different ways to fix it but same error's at line 33. Thanks in advance! *Sorry for my english* *This i...
[5 replies] Last: It worked, thanks a lot man! (if i can, i will something like +rep you... (by CosminPerRam)
What happen when float divides int ?
 
when an integer is divided by a float, what will be the data type of resulting answer. for example a=17 and b=20.0 . ans=17/20.0 . What will be the answer in th...
[7 replies] Last: What type is the variable to which the answer will be assigned? The co... (by Michael37)
Letter Frequency counter c++
 
My output is looking weird...it does not show capitals or lower letters. Can some one help me? #include<iostream> #include<string> #include<fstream> #i...
[6 replies] Last: You still have a superfluous array ASCII that isn't used anywhere fo... (by cire)
Date Class Assignment!
 
So I have an assignment to make a program that calculates the today's date. It also has to calculate tomorrow's and yesterday's. I have the bulk of the program ...
[no replies]
by Zorac
Swedish characters "ÅÄÖ" in visual studio 2015.
 
Hello, i am currently learning to program in visual studio 2015 after only doing it in linux before. I am currently having a lot of problems to get the program...
[1 reply] : ... (by coder777)
by ShaLee
Sorting Function not Correct
 
Hi, For my final project I'm writing a program that reads all the powerball numbers from 02/03/2010 up until now and then sorts them to determine the 5 most fre...
[7 replies] Last: I have not learned about maps yet. The code I have right now displays... (by ShaLee)
by wavy19
passing an array from private class.
 
hello there i have been stuck for 2 hours on trying to pass an array from private class to another: here is my code: class deck { private: card ...
[4 replies] Last: Why don't you just make everything public: . Would this affect your c... (by MikeyBoy)
by rush5
problems with pow()
 
Hello, for example int his code, pow(a,2) doesn't give the same value of a*a {int a; a=pow(60,2); int b=60*60; cout <<a<<" "<<b; } the output here ...
[6 replies] Last: ok, thank You very much (by rush5)
Overwrite on int with fstream
 
Hello everyone. First off, not only am I just starting with C++ but this is also one of my first posts on this forum, so I'm sorry if this is in the wrong place...
[3 replies] Last: The easiest way is to read from the existing file and write the desire... (by koothkeeper)
by zablas
How to involute?
 
So I'm fairly new to C++ and I need some help. I need to involute (I think that's how this action is called in English) the variable a by the variable b like be...
[9 replies] Last: I never said it was wrong. The first version you posted was a bit more... (by jgg2002)
class string code
 
The purpose of this code is to use functions from the string class to obtain information about a string. Detail Requirements The user of your program will ...
[1 reply] : Don't post multiple threads for the same question. It wastes everyone... (by MikeyBoy)
by Repix
Form Help
 
Hi Im using Visual Studio 2008 Professional I need some help with forms. Im trying to edit a form object property in a c++ file instead of a form file. Ex...
[1 reply] : Yes it is possibly. First you need to create a static constructor in ... (by Thomas1965)
The first function is always the hardest v.2
 
So for my assignment I have to do this. Write a complete C++ program to read in, sort, and perform other statistical actions on a set of data. The program ...
[3 replies] Last: [quote=keskiverto]A not is missing? You are right. I changed it in the... (by coder777)
Self-Referring Structs--How Is This Possible?
 
Say we have a piece of code like this: struct foo { int val = 123; foo *bar; //Pointer to another foo }; But how does this pass compilation?? Doesn't this...
[2 replies] Last: But how does this pass compilation?? Doesn't this create an infinite ... (by keskiverto)
April 2016 Pages: 1... 7891011... 43
  Archived months: [mar2016] [may2016]

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