Beginners - September 2011 (Page 7)

by Dunken
How to: mock async call
 
Hi A function I have to mock gets a callback as a parameter. In my stub I would like to return immediately but call the callback asynchronously later on (lik...
[no replies]
by erikn
purpose of "const" when initializing and assigning a variable
 
what's the difference between const int MAXVAL=10 and int MAXVAL=10? in both examples MAXVAL is assigned the integer value of 10 (?)
[4 replies] Last: non-volatile I wouldn't use that word, cause volatile means somet... (by hanst99)
by olzi
factoral challenge
 
hi, im stuck on a math/programming challenge. the challenge "Given the first few factorials: 1! = 1 2! = 2 x 1 = 2 3! = 3 x 2 x 1 = 6 4! = 4 x 3 x 2...
[9 replies] Last: thanks alot :D this has helped me out loads. 1!Factoral=1 2!Facto... (by olzi)
QT help
 
Okay I don't loaded it installed it, but when I make a C++ project it doesn't let me use the Desinger thing...
[11 replies] Last: Well done KyleFYI for getting it all working, enjoy the wonderful worl... (by dangrr888)
by Wandy
Help me please~
 
I'm new to C++.Today I want to write some lines to pick the min data and its index from a array .So I write a function and I use the construct return the result...
[4 replies] Last: You are missing "using namespace std;" after the #include's. As... (by Moschops)
by Leon
Numbers after floating point
 
Hello. I need to write numbers very precise (up to 1000 digits after floating point). Can anyone help me?
[3 replies] Last: Still leaves the question "Why?!" though... Anyway, that's the best... (by Gaminic)
Why doesn't this work?
 
Here is the exercise: Write a program that does nothing except print all the commandline arguments, each on a separate line. Here is the code I made for th...
[5 replies] Last: You want to start at one but you don't want to stop at 10, you want to... (by TheMeerkat)
Having trouble understanding Command-line arguments
 
Here is how my book explains it. All the programs in Chapter 8 operate on files. The first thing each of these programs does (after declaring variables) is ...
[6 replies] Last: No problem. (by TheMeerkat)
f2c translation
 
Hi all, I am fairly new to programming and I am currently trying to translate a Fortran program to c++ for a research project. The program is written with ~15 d...
[1 reply] : @mjschaible This is a C++ forum. You'll have to locate a Fortran forum... (by whitenite1)
f2c translation
 
Hi all, I am fairly new to programming and I am currently trying to translate a Fortran program to c++ for a research project. The program is written with ~15 d...
[no replies]
Help: while !eof loop
 
the loop returns the correct output, but goes one more round then supposed to, and returns an extra line of junk output, how do i correct this? #include ...
[1 reply] : In order for the eof flag to be set (on) you need to read the eof char... (by Mathhead200)
by Wandy
How to return 2 result from a funtion
 
I wonder how to get two result from a function.Can someone be kind to help me .Thank you in advance.
[4 replies] Last: Excellent!! Thank you so much. (by Wandy)
How Do I Reset Integers?
 
I'm very new to C++ and I have been watching tutorials and reading about it. After learning about random numbers in C++ I decided to make a simple rock, paper, ...
[19 replies] Last: I'm pretty sure your problem (or one of them at least) was with while... (by Mathhead200)
Arrays and User Input
 
I have an assignment... Implement a class Person with the following data members: - name (string ) - name of this person - age (integer) - age of this pers...
[4 replies] Last: I'm assuming you declared "string name" in the main program so based o... (by tech junkie)
Do I really need to know this well?
 
So I've been reading through book's, browsing forums, and watching videos to learn C++. So far, it's been pretty smooth to learn. However, I've gotten to the pa...
[8 replies] Last: I've practised through it a bit now, and you're right it's not that h... (by Zexanima)
a LITTLE help! (1,2)
 
hi?
[20 replies] Last: ultifinitus you act as if you troll as a female on the daily.:) would... (by ultifinitus)
I need help fixing some errors.
 
Basically I have an assignment to debug this code and allow it to run, my problem is I can't tell what is wrong based on the errors I'm receiving, so I'm comple...
[4 replies] Last: just to get it to compile (by Mediamessiah)
why wont this compile?
 
i know im should not ask for help for little things like this but i need help heres my code! #include "stdafx.h" #include <iostream> #include <cmath> #in...
[9 replies] Last: You use namespaces to avoid multiple variables (or functions etc.) hav... (by LBEaston)
by jd9554
Segmentation Fault
 
I am getting a Segmentation Fault error. The code works fine in my "load arrays function" after I've loaded the arrays. I pasted it at the very bottom inside ...
[3 replies] Last: I found the error, which is that I was wrong in thinking pointers are ... (by jd9554)
Won't use user's input.
 
I'm working on a program from a book exercise that prints the lines of a text document. It works fine, except when it gets to the part where it prompts the user...
[3 replies] Last: Yeah! Got it to work. ^^ Thanks a ton. (by Zexanima)
September 2011 Pages: 1... 56789... 48
  Archived months: [aug2011] [oct2011]

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