Beginners - September 2009 (Page 12)

Threads, how to use them?
 
Hello! Could someone explain to me how to use threads? i want to run two functions at the same time on a console application, and i heard that threads can do...
[2 replies] Last: If you have enough patience, you can wait C++0x multi-threading http:/... (by Bazzy)
No Matching function error
 
This is a simplified version of an earlier post that went unanswered. I have tried to re-work things around without success. I still have no idea why the compi...
[9 replies] Last: OK....I commented out that section in Stroustrup.h and now it will com... (by monkeywrench)
linking data from a terminal to a c++ application
 
i am new to the world of c++ and only need c++ for a very specific task. the task is this: i have server which is shooting out live time data which i woul...
[2 replies] Last: helios, thanks for your interest, i need to analyse financial data ... (by jorge01)
random number between -1 and 1
 
hi please help me how to generate random number range between -1 and 1. following code works but just in range between 0 and 1 int min = -1; int m...
[1 reply] : That code works for me. (by jsmith)
Conversion to non-scalar type problem
 
No responses yet....do I need to post more info? Apparently, I am trying to save something that is one type into a variable of another type and I am getting an...
[2 replies] Last: Stroustrup is only related to the try/catch block. It is from a text ... (by monkeywrench)
by alias
C-string input / output
 
I'm writing code for a c-string input and output, but when I go for the output, it skips the first word and outputs all the other words after that. heres th...
[3 replies] Last: If you're using C-strings then use: char str ; cin.getline(str,... (by mcleano)
textfile into structure
 
can someone please give me an example of inputing from a text file into a structure. one problem i face is one of the variables inside the structure has to b...
[3 replies] Last: sorry if i wasnt clear, i need to input data from a textfile(the above... (by SoetSout)
by mulgar
Need assistance understanding comiler error on vector iterator
 
I need some assistance understanding why "a.vector_.begin()" is not valid in the below code. I've made the below sample program to help explain it easier, I can...
[2 replies] Last: Thanks so much for responding firedraco! I tried out your suggestion a... (by mulgar)
by ztein
Function prototype errors
 
Here's the source: #include <iostream> int milpergal(int); using namespace std; int miles, gallons; int main() { cout << "How many miles you travel...
[2 replies] Last: Thanks, errors have dissapeared. But how would you pass multiple ar... (by ztein)
by ztein
Converting seconds to days, hours, minutes and seconds?
 
Here's the excercise from a C++ book: Write a program that asks the user to enter the number of seconds as an integer value(use type long) and that then disp...
[2 replies] Last: Worked perfectly. Thanks alot. (by ztein)
Saving Two Structures in One File
 
Intro... Okay so er, hi to everyone. I'm new to this forums, as you can see. Anyways, I have partly read the forum rules and it's stated there not to ask fo...
[2 replies] Last: and the continuation... =/ #ifndef _sdmenu #define _sdmenu i... (by destinedjagold)
C++ syntax that determines characters case
 
I have been searching all over the place for the c++ syntax that determines which characters in a string are uppercase, lowercase, and numeric Please help ...
[2 replies] Last: Thanks much Bazzy (by webmaster 2)
by wachtn
copy text to clipboard
 
Writing a simple program to copy incremental numbers to the clipboard. do 10 times { copy x to clipboard x++ wait for user response } ...
[2 replies] Last: Thanks helios for that great reply (by wachtn)
Ansi Escape code - Wrong symbols
 
Hey.. (sry i'm danish, my english might suck..) I've started on a course, and my computer gives me some other symbols than the rest of the group. When i exec...
[8 replies] Last: No, I'm sry... didn't work.. Well I need my sleep but thx, for the he... (by jonashoumaa)
integer to string
 
how do i write an integer value to a string , and specify the number of characters, and the data to be in hex? so , if i have x = 25; i want to write ...
[2 replies] Last: http://www.cplusplus.com/forum/articles/9645/ (by mcleano)
Using bash instead of CMD?
 
Hey there! I've been wondering now for some quite time, is it possible to use BASH unix shell instead of the original CMD in windows? The problem is that CM...
[4 replies] Last: The shell that gets attached to your executable depends on your system... (by Duthomhas)
saving my work
 
let's say i wanna create a program in which I would enter some informations(like Age, name etc.) My goal is to store that informations in some kind of text docu...
[2 replies] Last: tnx (by mr zdeis)
How do you get a pressed character to a variable?
 
hey all! I want to do a compare statement that compares what key the user has pressed, it would look something like this: (var) pressedkey; cout<< "Pre...
[19 replies] Last: Curses is not a standard library. You need to go download it. (by Zhuge)
Function Bug
 
Right so I thought hey lets make a calculator program to practice my function noobie skills. This is my code so far, and whenever I go to subtracting(), the ans...
[3 replies] Last: Ahh thanks mate that worked and I also was using + instead of - LOL th... (by arcadiu)
by hannes
strcpy
 
hello, i have a question about the strcpy-function. the strcpy-function returns a pointer-to-char. Must you write a variabele of the type pointer to char ...
[6 replies] Last: Ok, i've got it, thanks! (by hannes)
September 2009 Pages: 1... 1011121314... 23
  Archived months: [aug2009] [oct2009]

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