Beginners - August 2014 (Page 34)

Customer methods, in serveral classes
 
I have a header file that I've saved methods I use in nearly every program I write in. In the past this header file was mainly relocated just to my main() cpp f...
[6 replies] Last: the methods I use all the time for data validation and such in the cu... (by AbstractionAnon)
by kdstar
SUm of Items
 
I'm Trying to get the TOTAL of the Items that has been Entered,Basically The Program will ask How many Transaction then and each Transaction there is a MENU (1-...
[4 replies] Last: A websearch with "zero-initialize" finds useful things. Please, use t... (by keskiverto)
by bbbeee
Stumped on a project
 
Here is the project: In this program you will make suggestions as to what stock to buy among the ones that are owned. There is a file named stocks.dat. Copy th...
[1 reply] : Part of your problem is probably contained in the following snippet: ... (by jlb)
Explaining current local time function
 
I have a function which prints out the local time stamp when the function is called, I have it working fine but would like to understand more of how it is worki...
[1 reply] : tm: http://www.cplusplus.com/reference/ctime/tm/ strftime: http://www... (by mutexe)
by MacC
Dev-C++ Class Browser Problem
 
Hello I have a problem with the DEV-C++-IDE (v. 5.7.0). At a specific point in my code the following function appears. int ReadStdInput(char** out) { int P...
[no replies]
(Reaction game) Discard all char before the user reacts (by pressing enter)
 
The Problem I have created a simple console reaction game. But there is a bug that I can't solve even after reading many related posts and trying many d...
[2 replies] Last: Do you mean in while (chrono::system_clock::now() < timesup) ? If so,... (by Nikko YL)
by sjabat
T3st sc0re with name
 
#include<iostream> #include<windows.h> using namespace std; int main() { int tempTest = -1; int testCount, testAverage; string name1,name2,name3,name4...
[12 replies] Last: Thanks btw big help (by sjabat)
by SVcpp
cs162_lab4.cpp:29:38: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
 
Hello, I keep getting this error message in my code and I seem to not understand why it's happening. Please help me this is extremely annoying and importa...
[1 reply] : You've defined course as a char - holding a single character, but your... (by wildblue)
<fstream> error at build (error code in post)
 
Hello experts and thanks again in advance for your help!! I'm doing a few lessons here and I've been required to write a very basic program to write lines to a ...
[4 replies] Last: So I'd be looking for? ofstream file1(fileinfo.c_str()) ? I will def... (by Bad Reg)
by SVcpp
invalid conversion from ‘int’ to ‘int*’ ?
 
Hello I'm currently attempting to write a program that takes in user's class information (CRN#), Course Designator (ex.CS162), Section (integer). I need to prom...
[2 replies] Last: At first look, you have course declared as an int, but passing that in... (by Ganado)
Can anyone recommend a good compiler for win 8 64bbit
 
New to the forum. New to programming. Am 66 now and I thought it is time to make time to learn what I have put off for so many years...learning C++ I would...
[6 replies] Last: http://blog.smartbear.com/codereviewer/15-code-editors-for-the-ipad-fo... (by giblit)
by SVcpp
Shadowing?
 
Hello writing a function currently and when I try to make a parameter list with char values it says that my code is shadowing? Could anyone help with? Thank ...
[5 replies] Last: You can say void user_name (char first , char last ) BUT this doesn... (by helios)
by Arnna
Looking for feedback
 
Hey everyone. New to the forums and new to programming/c++ in general. I'm going through C++ Primer 5th edition and wanted to get some input on how my code turn...
[1 reply] : All those iterators, particularly the end()-1, scare me. There is not... (by keskiverto)
typename?
 
Hi, I'm currently following Accelerated C++ and I have this code #include "stdafx.h" #include <Windows.h> #include <vector> #include <iostream> #in...
[3 replies] Last: As to why http://www.parashift.com/c++-faq/nondependent-name-lookup-ty... (by ne555)
by kaiwei
Problem when writing Kosaraju’s algorithm on Mac
 
I ran some C++ codes in order to realize Kosaraju’s algorithm on my mac. I want to output the largest 5 SCCs in terms of their number of nodes. I have to writ...
[1 reply] : ¿is that a build error? If that's the case, show your build command a... (by ne555)
by EzraJN
SetCursorPos does not seem to work
 
In my program I wanted to try SetCursorPos, but it does not seem to be working. Is there something that I would have to add to this in order for it to work? I ...
[1 reply] : It works fine. SetCursorPos sets the mouse cursor. If you are inte... (by Disch)
Structs in Arrays: newb question
 
Having trouble with something I thought would be simple, I'm getting an error every time an odd number is entered. No idea why. I also had an issue with struc...
[3 replies] Last: Hi Anon, I implemented the recommended changes and now everything is ... (by kparker)
by wharp2
Beginners struggles
 
So I was instructed to wright the following. Student grade records are stored in “Student Data.txt” file. Your tasks are: define a structure for st...
[5 replies] Last: Line 79-84 is the definition of a struct. It is not a variable and sh... (by cire)
Transferring data across functions
 
So this is not a thread where you need to check my code... hopefully. I was making an exercise ConsoleApp. in which the user has to choose the type of phone/...
[3 replies] Last: @jib, @Disch +1 Thank you both ^_^ I finally figured it out. ... (by Resonance)
Why I declare an extern variable in header file but it still can't be used as global??
 
I have a header file (a.h) and source file (a.cpp). In the header file, I declare an extern variable: extern int bb; In my source file, I have mutiple fun...
[4 replies] Last: Thanks very much. (by buddha87)
August 2014 Pages: 1... 3233343536... 40
  Archived months: [jul2014] [sep2014]

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