Beginners - July 2014 (Page 5)

c++ operator overloading errors
Hi this is my first time at this site and i am trying to create a program that uses operator overloading on rational numbers entered by the user. here is my co...
Jul 29, 2014 at 3:05am
[3 replies] Last: There're many wrong spots I saw only scan for secs. Just like, i.e. ... (by lsk)
OpenGL colors won't show up?
I'm trying to make a shape in OpenGL and when I try to change the colors to anything like (3,5,6) or (2,6,4), the color will not show up. The colors only seem t...
Jul 29, 2014 at 1:30am
[2 replies] Last: Ooh, I see. That worked, thank you very much! (by VisuAlly)
by zed627
Non-global variable constants from the header file into a function
I'm trying to work on a project, where the main program calls on a function to compute something, but the constants of the function are declared in the header f...
Jul 29, 2014 at 1:19am
[1 reply] : If you are using a constant, there are a couple of ways of doing this.... (by TwilightSpectre)
Pointers to functions problem
I was reading a tutorial on this site about pointers to functions, and I wanted to create something on my own. I wanted to make a simple function that adds t...
Jul 29, 2014 at 1:13am
[3 replies] Last: Ah, that makes sense. Changing type (*function)(type) to void (*fu... (by RainbowParadise)
by wharp2
Getting average problem
Hello, I am having a bit of a beginner problem :) In my code my average is not coming out to be right. Bellow is my code and the out put. Thanks for the help!...
Jul 28, 2014 at 11:35pm
[3 replies] Last: sum_of_test_scores = 0; I would do it after the average is calculate... (by admkrk)
by stlund
Need help with a Highscore program.
Hello, so I'm trying to code a highscore program, with 2 classes and some methods. But when I try to fill the object with some new numbers and name, it sets...
Jul 28, 2014 at 8:05pm
[8 replies] Last: Why does HighScore inherit HSItem? Your HighScore object is NOT a HSI... (by AbstractionAnon)
by swivel
Error Message when compiling code.
When I try to compile the code below, I get " error: statement cannot resolve address of overloaded function." What does this mean? #include <iostream...
Jul 28, 2014 at 7:25pm
[4 replies] Last: Thanks for the explanation. Now I see what your saying. (by swivel)
Recursive problem
Hi, as many others overhere I am new to C++, that's why my script is looking very amateurish. My apologises for that. I have below script to list all files in...
Jul 28, 2014 at 7:25pm
[no replies]
Access text box from a .cpp file not the original .h.
So if I access the textBox9 from the Form1.h file I have no issue editing the contents by simply doing this textBox9->Text = "whatever"; However when I tr...
Jul 28, 2014 at 7:06pm
[17 replies] Last: In case anyone runs across this problem. I found the solution here. ke... (by nick050183)
by zca4
Function trouble in a string substitution program
Basically I'm supposed to write a program that asks for two file names, an input and an output file. The program then reads the input file and makes substitutio...
Jul 28, 2014 at 6:48pm
[3 replies] Last: What do you mean by having trouble? Also, you could just have return ... (by Ganado)
by weee
a little question about rvalue reference overloading
here's one snippet from MSDN /////////////////////////////////////////// class MemoryBlock { // TODO: Add resources for the class here. }; void f(con...
Jul 28, 2014 at 6:37pm
[3 replies] Last: NOTE: Explaining rvalue-ref within few lines of comment cannot suffice... (by OxBADC0DE)
noob basic command line usage microsoft visual c++ express
Hi, I am a total idiot when it comes to command line interfaces. Unfortunately I was too young to use the family apple 2c before it was replaced by a windows...
Jul 28, 2014 at 6:31pm
[4 replies] Last: See: http://msdn.microsoft.com/en-us/library/f35ctcxw.aspx (by JLBorges)
findavg function in array
I've written this program before, but now it consists of separate functions. I'm trying to get my average function to work, this is as close as I've gotten. ...
Jul 28, 2014 at 5:42pm
[8 replies] Last: Glad to help, but something to think about in in the future - If each ... (by admkrk)
by Ganado
Using friendship with save file function
I ran into a little problem when coding some stuff. I am wondering if the following situation is a good place to use C++ friendship, this would be my first time...
Jul 28, 2014 at 5:38pm
[no replies]
by zionet
Generate N Perfect Numbers???
EXAMPLE: 1 6 2 28 3 496 4 8128 5 33550336 6 8589869056 7 137438691328 8 2305843008139952128 9 2658455991569831744654692615953842176 10 19156...
Jul 28, 2014 at 4:52pm
[4 replies] Last: Brute force solution is to get a table of primes, first 1000 primes fo... (by Smac89)
by Fletch
Multiple anti-closers having to be used.
I have looked around at that common issue beginners tend to ask a lot - "How do I stop the console closing down?", finding many ideas. The simplest always seems...
Jul 28, 2014 at 4:23pm
[6 replies] Last: Scrap that, complete numpty moment, didn't #include <limits> ... (by Fletch)
really lost
I'm having a really difficult time in my current c++ class. I've exhausted myself for the last couple of days asking my professor for help, and maybe he doesn't...
Jul 28, 2014 at 3:25pm
[5 replies] Last: You don't need line 4. (by mutexe)
Display Slovene letters in a string
Hello, I'm new here! I've just started C++ and I'm using Code:Blocks for now. I want to 'cout' the letter Č from the Slovene alphabet. I've been searching on...
Jul 28, 2014 at 2:52pm
[4 replies] Last: Thanks for the link, i tried the code but I think I'm still restricted... (by Mike Teavee)
lifetime of variables inside namespaces?
hello everybody. in the code below, what would be the lifetime of integer n? #include <iostream> using namespace std; namespace Space{ int n = 10...
Jul 28, 2014 at 1:55pm
[2 replies] Last: oh i see. i'll try another approach then. thanks! (by Stauricus)
The meaning of int
When doing the following code I had accidentally used int instead of char and when running the code it still worked but if I type i or y nothing would happen an...
Jul 28, 2014 at 12:41pm
[8 replies] Last: Oh sorry, I got a bit confused. Whenever I had integer trouble (with... (by closed account j1CpDjzh)
July 2014 Pages: 1... 34567... 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.