Beginners - July 2014 (Page 21)

Trouble pulling names/grades (seperate files) and printing to a third file? File is blank.
I'm trying to pull names from one file, grades from another, and printing both to a third file. I've done similar things before and even tried to reuse some cod...
Jul 17, 2014 at 7:48pm
[4 replies] Last: Thanks everyone for your help. I ended up deleting the files and recre... (by LunaCaelum)
Function Overloading
I'm not able to call the proper overload for a certain function. Here are the prototypes for the overloaded function. class cItemMgr{ public: //**irre...
Jul 17, 2014 at 7:03pm
[5 replies] Last: Peter - No syntactical errors are present in the code. giblit - yes, t... (by billywilliam)
HW ?...almost there....I think
Write a program with 3 functions: void input(int vals , const int MAX, int & size); void maxmin(int vals , int size, int& max, int & min); void output(...
Jul 17, 2014 at 6:58pm
[4 replies] Last: Thanks very much (by burton1995)
by nebel
What's a good way performance-wise to read in words from a text file while ignoring the punctuations?
Hello, I have a text file which contains words and punctuations like ,.:"... I want to get each word from the text file and work on them. What would be the way ...
Jul 17, 2014 at 6:52pm
[8 replies] Last: The Windows API (most of it) is designed to support characters encoded... (by JLBorges)
STL Sort Algorithm
I'm writing a program to read a sequence of doubles into a vector, prints the values, the sum of the values, and finds and prints the smallest and greatest valu...
Jul 17, 2014 at 6:38pm
[5 replies] Last: Yep (by Peter87)
Please Explain Constructors, Destructor, Public And Private
Hi Everybody, I have to read about Constructors, Destructor, Public and Private. I don't understand all the tutorials online. Can someone explain it to me in si...
Jul 17, 2014 at 5:54pm
[2 replies] Last: The constructor is what is called when you construct a new object. The... (by giblit)
by xx1182
Extract Character from file
Oki, i'm using fstream.getline to extract characters from a file. Now, here's the problem: Suppose i have a file named lel.txt containing: 123 321 wh...
Jul 17, 2014 at 4:01pm
[2 replies] Last: If the line contains more than the buffer can hold you'll also need to... (by jlb)
ios::app and ios::_Nocreate not going alone ?
Hi, I'm trying to open a file with ios::app, but without creating it if it doesn't exist. What is wrong? #include <iostream> #include <fstream> using name...
Jul 17, 2014 at 4:00pm
[5 replies] Last: I tried some kamikadze stuff and it worked this way : fstream file("l... (by Guzfraba)
Can't find minimum (C-Program)
I'm making a program in which user enters the number of pancakes eaten by 10 people. Then the computer tells the max and mim number of pancakes eaten. The ma...
Jul 17, 2014 at 3:58pm
[5 replies] Last: Well, at least have a go, show the code for your attempt and we'll tak... (by Chervil)
Using switch case with letters instead of integers?
so I needed to write a program that kept date on entry(part of a diary) and instead of writing if statements I thought I'd try a switch case. Apparently that do...
Jul 17, 2014 at 3:56pm
[1 reply] : While someone said something about using a hash... http://www.cplus... (by closed account z05DSL3A)
by xx1182
Callbacks wtf?
I'm currently working on a c++ class using a c library. I've heard that c++ doesn't automatically casts voids so when i assign my function it gives me a strange...
Jul 17, 2014 at 3:01pm
[1 reply] : error cannot convert void to void O_o You might want to re-read tha... (by cire)
pointers in c++
I am studying pointers in C + + and in my book there is a paragraph that explains what values ​​can take a pointer 1) it can point to an object 2) it can j...
Jul 17, 2014 at 2:55pm
[3 replies] Last: Study linked list and you'll understand everything (by Uk Marine)
by gingy
Ifstream Always Failing To Open A File
I'm currently working on a game that essentially uses ASCII characters to create the level for a top down RPG. I ran into an issue with a function meant to read...
Jul 17, 2014 at 1:49pm
[11 replies] Last: I also included <cstdio>, which uses printf. I generally try to use ... (by jlb)
by Nanyo
Small bug
Hello when I start the program little bug is occurring. Some ideas? Thank you in advance! By the way I use code::blocks as a platform and this program is a s...
Jul 17, 2014 at 1:06pm
[7 replies] Last: Thank you! (by Nanyo)
Errors: expected identifier and others
I am trying to teach myself to program in C, I do not understand the error's that I am getting. I am using Code Blocks on a Window's Machine. Could someone plea...
Jul 17, 2014 at 8:26am
[1 reply] : char = (orange + int); 'char' is a type. You cannot assign to a typ... (by keskiverto)
calling function issue
Im having issues with outputting the doSomething(pX); #include <iostream> using namespace std; void doSomething(int *); void main() { i...
Jul 17, 2014 at 7:55am
[2 replies] Last: oh thank you. (by cplusbeginner89)
by Sgreen
Simple array issue
Hello, I am to sort an array. I want to call this function to auto-input these preset integers into an array as an option. I am receiving an error and unsure wh...
Jul 17, 2014 at 4:58am
[8 replies] Last: int size; int array ; this is not valid c++. To do it this w... (by giblit)
Why does this code work? (question about cin)
When I run the program, and I enter 1-2 (no spaces), I guess the program understands 1-2 is '1','-','2', and not 1-2 or 1 -2 etc. I was expecting it to prod...
Jul 17, 2014 at 4:33am
[1 reply] : How does cin know where input starts and ends? The extraction operat... (by jlb)
by dgsm98
Game programmibg libraries
Okay, so ive been learning c++ the last week with the book "C++ without fear" and so ive always been interested in game programming, i was researching sone diff...
Jul 17, 2014 at 2:29am
[6 replies] Last: If i was going to use an engine, id use unreal 4, its fantastic graphi... (by dgsm98)
Noob question about which program you use to create C++ software.
I have been learning Unity and C# but I'd like to ultimately focus on C++. I really like the way I can use a windows interface with Unity to create game obje...
Jul 17, 2014 at 2:20am
[2 replies] Last: Giblit hate to be the guy to correct you, but I have seen a LOT of g... (by AceDawg45)
July 2014 Pages: 1... 1920212223... 43
  Archived months: [jun2014] [aug2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.