Beginners - April 2016 (Page 30)

How would I go about...
 
How would I go about listing all the created txt files in the folder, and then accessing them one by one to edit or read them? The following is what I have c...
[4 replies] Last: Is there any way I could do it just using fstream? No way. With fst... (by Thomas1965)
by kylie
Stuck with getline problem
 
I really need help from you!! PLEASE!! I use struct, ofstream, dynamic memory allocation to get result in text file with this format : 1997 titanic; Cameron...
[1 reply] : cin >> movie .year; cin.ignore(); //to discard the end of line ... (by ne555)
how would I multiply two 2d dynamic arrays and store them in another dynamically created array?
 
my code(mistaken) is: #include<iostream> using namespace std; int main() { int r1,c1; cout<<"Enter the row size for 2d array A\n"; cin>>r1; cout<<"E...
[1 reply] : compare int** B = new int* ; for (int i = 0; i < r2; i++) { B = ... (by ne555)
I can't use CLS in Linux terminal
 
I'm using #include <cstdlib> but system("CLS"); isn't working and I get that error in linux terminal: sh: 1: CLS: not found ...
[no replies]
How to modify code to output result using a different method?
 
I'm working on a project, and I've finally gotten it to the point where it does everything I want and produces the output I want. The problem however is that my...
[7 replies] Last: Why does line 118 begin a while loop? How many rolls are you doing? ... (by cire)
by afeng
Help with increasing the size of an array of objects
 
I have gone on two other websites for help, but with no luck. I am bad at communicating what I need help with so please bare with me. I cannot use vector or an...
[5 replies] Last: http://www.eelis.net/iso-c++/testcase.xhtml point 6 (by ne555)
Access violation
 
So i was trying to use freetype on my VS but I kept having this error Exception thrown at 0x6B402D64 (freetype6.dll) in HelloTriangle.exe: 0xC0000005: Access v...
[2 replies] Last: Yes i followed it. if you are talking about library initialization I l... (by skadush)
wrong code output
 
This code is supposed to print out mean, max and min value of an array in a structure but it is returning wrong values. Can someone please tell me what I am doi...
[13 replies] Last: Thanks guys for making me think. I figured it out and returned the val... (by Cplusplusstarter)
Error in loops
 
Hey everyone I need some help figuring out what's wrong with my code. It's supposed to read data from a text file that contains values for frames, bins and ampl...
[1 reply] : You only seem to be reading one item from your input file and you seem... (by jlb)
by pabs8
loop through pointer array
 
I am doing a memory allocation exercise using a pointer array. The task is to create an array of 26 objects. Then loop through the alphabet and for each item in...
[6 replies] Last: Thanks cire, that was awesomely good, it really helped me. I successf... (by pabs8)
Nothing is printing to the screen
 
I assume I have a logical error but I can't pick up on it. Nothing is printing to the screen except: "File opened successfully." #include<iostream> #incl...
[3 replies] Last: You only ever read a single number from audioFile (at line 16). Does ... (by dhayden)
Theater Seating Project help please
 
Here is my codes and below the codes the errors // Chapter 7, Programming Challenge 20: Theater Seating #include<iostream> #include<iomanip> using namesp...
[3 replies] Last: just finished. YUP IVE BEEN AWAKE SINCE I POSTED THIS... guess this is... (by chillsloth)
by MCCodo
Stuck with c++ help
 
Hi I'm Martin I have a little trouble learning c++. I have done some basic console programs and have basic understanding of pointers, variables,classe...
[5 replies] Last: Thank you all its very helpful though I love to watch tutorials and pa... (by MCCodo)
using answer of question for a struct
 
I'm trying to use a anwer of a question as input for a struct:\ This is the first struct: struct Product *CreateProduct(char *name, char *company, char *p...
[1 reply] : In C++, you don't need to say struct other than when you're defining i... (by Moschops)
Sorting from highest to lowest
 
Hello everyone, I'm fairly new to C++ or programming for that matter and I ran into a snag. My program generates 6 random numbers and I need to sort them from h...
[1 reply] : Put them in an array, then like this: sort(array, array+5, std::great... (by Moschops)
error towards the program
 
#include<iostream> using namespace std; #include <iomanip> #include <cmath> class loan{ private: double rates; double amount; double payment; double totalloan;...
[2 replies] Last: ohoh i thought that if someone answer the question the post will gone ... (by ChungTong)
display 0 in my proggram??
 
my program display 0 after run after i enter the loan money, rates and year thank you for your helps please point out my errors, i am a beginning C++programer: ...
[1 reply] : You need to create an object for a class. Read about classes. When you... (by closed account 1vD3vCM9)
Craps game
 
In my class we are doing a project of programming casino games My craps game works but not the way its supposed to. I have tried to set a wager system where the...
[2 replies] Last: The only issue I'm not having is implementing a betting system. I unde... (by The117Vendetta)
by Atton
A Question About Threads
 
How could someone make two threads that can operate in the background without disrupting the flow of a program. I am trying to do this for an IRC Client but I c...
[5 replies] Last: #include <atomic> #include <thread> std::atomic<bool> exiting(false)... (by cire)
Answer keeps returning "nan"
 
Here is the question: A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such ...
[2 replies] Last: A couple of quick comments, first you have a lot of code duplication, ... (by jlb)
April 2016 Pages: 1... 2829303132... 43
  Archived months: [mar2016] [may2016]

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