Beginners (Page 6)

Segmentation fault(core dumped)
Well... This is my code and I encounter Segmentation fault(core dumped)... I found where it is but I...
[1 reply] : My first suggestion is that you stop using VLAs and either make your a... (by jlb)
Project with a Class Date to input 1/1/00 as the date and also overload.
I need to input my textfile call date2test. I am not sure where to put them. Please help! //...
[3 replies] Last: Thank you for your help Andy. I really appreciate it! (by jolley1002)
Classes accessing each other
Hi everyone, So I heard that classes can friend each other, but the only problem is that when I t...
[6 replies] Last: Ok I see. Thanks. So globally it's much easier to simply have a class ... (by leoleoleo)
Weird... (1,2)
I felt like my c++ knowledge is leaving me... can you do something like this? if (something !==...
[22 replies] Last: if (something !== 5||2||6){ balah blah blah } There are three error... (by Chervil)
by Daias
Operator Overloading -
Hi guys, now I try to learn about operator overloading, I understand something but not it all. I wan...
[4 replies] Last: Thank you so much, now I understand, . Thank you again. :D You explain... (by Daias)
Need help using strings in a switch
In the code below I'm trying to assign a different value (name of mineral) to the string in each cas...
[1 reply] : Well first of all you are trying to create and assign a string inside ... (by rabster)
Hint please!!
How should I write this program if I have to write it with "for loop" instead of "if"... #include...
[3 replies] Last: cin >> no_of_loops; for(int i = 0; i < no_of_loops; i++) { // gen... (by kemort)
Constructor (1,2)
When I am debugging this, the initial values of pi is no 3.14159 but some huge negative number as is...
[22 replies] Last: #include <iostream> using namespace std; #ifndef CIRCLE_H #define CIR... (by kemort)
Program help
Hello! I'm very new to C++ and I have a program I need to write that I do not know how to start. The...
[14 replies] Last: It's not clear what you mean. You should try it out in your code inste... (by kemort)
How to negate case sensitivity.
Ok, really suck at this so far, but I've managed to code enough to get a working program. The questi...
[13 replies] Last: Woohoo! Thank you Sakura! Now could you tell me why that fixed it so I... (by Viking86)
finding ' symbol
I'm writing a bit of code that needs to determine if a char variable is an apostrophe ('). My code d...
[3 replies] Last: thanks for the help! (by cdubbs85)
Is there a built in means of reading a vector<char> line by line?
I have a file I'm reading into a vector<char> buffer, reading through it for keywords, and adding ne...
[5 replies] Last: For me this is mostly a learning exercise. A custom allocator would de... (by zerophase)
by fm401
Help with a question!!!
Hey guys. So I have a problem that I was trying to solve but i am a beginner at C++ so i am having a...
[2 replies] Last: (by kemort)
by fm401
C++ beginner in need of help with a problem
The formula for C(n,k) can be expressed as the product (1+(n-k)/1) (1+(n-k)/2) (1+(n-k)/3) ... (1+(n...
[3 replies] Last: (by kemort)
by Xizor
How to read file and calculate data
Hey, I am new to C++ and I have this project I need to do for class. I am given two .csv files and I...
[1 reply] : int a, b, c, d string e while( elect12 >> a >> b >> c >>d >> e) { ... (by kemort)
Need help with functions
Hello :) I need help. I am having so much trouble with functions. Declaring them and calling them...
[8 replies] Last: Sorry for the late reply. That's becoming a lot clearer to me now! I w... (by Saibachick)
Error when trying to open file created by user input
I am trying to get an input file to open after a user inputs the filename. But whenever I run my tes...
[4 replies] Last: Hello marc4120, How do I create the input file without knowing what ... (by Handy Andy)
Manipulating Random Word Generation
Hello, I would like to know how I can manipulate the results for a string such that 20% of the ti...
[4 replies] Last: I figured a way to fix it: I replaced the else if s with just else sta... (by CelestialX)
Functions & Calculations
[2 replies] Last: Hello dawnstar, Read up on setw, setpersion in the iomanip headder fi... (by Handy Andy)
more stuff about cin?
recently i found out that cin doesn't just ask for input, it also can do and stuff. What th...
[1 reply] : There are about 400,000 matches on google, some like this one. https:/... (by SamuelAdams)
Pages: 1... 45678... 55
  Archived months: [jul2016]

Cannot post in this page. To post a new message, go to the first page.