Beginners - November 2008 (Page 17)

simple problem
 
hi all! i am trying to set a timer which will call a function when it expires & it will run once.But i am so far unable to do that using SetTimer() or wait().b...
[1 reply] : Is this the Windows SetTimer we are talking about. If so - then k... (by guestgulkan)
unwanted output from delimited file.
 
I am trying to finish up a homework assignment that reformats the output of a text file. When trying to run this it is skipping the first name in the list and p...
[3 replies] Last: In your original code, on lines 32-37, you put the first "line" of the... (by firedraco)
Quit Function in c++
 
hi i wanted to make a quit function to this matrix effect... take it and use it to see wot i mean and the quit function can be used at any time in the matrix....
[10 replies] Last: Thanks (by minaadel1994)
how to modify the cout format of float?
 
int main() { float a = 3300.05; cout << "a = " << a << endl; // a= 3300.05 float b = 33000.05; cout << "b = " << b << endl; // b= 33000.1 f...
[1 reply] : cout << fixed << setprecision( 2 ) << a << endl; (by jsmith)
2d array and random numbers
 
so im doing this project for my cs class and we have create a simple minesweeper game. in one particular part at the beginning of the program i have to write a...
[5 replies] Last: Yup. Now it's kinda nasty to dorking with the for() loop index like y... (by jsmith)
Binary Tree Issues
 
I have updated the code. I can get it to build a tree, yet the lnr (in order traversal) doesn't work. I've looked at several tutorials - even copy/pasted someo...
[5 replies] Last: @Mal: Yes, I believe they are operated left to right, with the followi... (by firedraco)
problem with vector.size()
 
We're just starting to use vectors, and have to write a simple program to enter data into a vector, and then use a for loop with the .size() member function to ...
[3 replies] Last: >I was under the impression that using >vector<double> sales(NUM_DAYS... (by melkiy)
POW function
 
wrote code that asks you to enter 2 numbers, x and y. program is then supposed to take x and use it as the base and take Y and use it as the exponent and print...
[9 replies] Last: First off this is a pretty simple assignment. Your problem is not in ... (by hollowpoint)
by myax
How to make predefined function??
 
i want to make a predefined function of mine own. plz tell me which header file to modify and how. i am a beginner here so plz be a bit more specific.i use turb...
[7 replies] Last: Code bloat and duplicate symbol problems. If you implement a functi... (by jsmith)
Question with directory listing into array
 
*edit char index ; struct dirent *dp; DIR *dfd = opendir("."); if(dfd != NULL) { while((dp = readdir(dfd)) != NULL) { printf("%s\n", (*dp...
[7 replies] Last: What about this? Put your own directory name in - I just used test be... (by guestgulkan)
Creating exe file
 
I have finished making my code for an object oriented implementation of a hydrology program for my academic project. I have been using Microsoft Visual studio. ...
[4 replies] Last: yeh i guess , im not sure! (by minaadel1994)
drawing a person using modular program and ref parameters?
 
I know kinda how to do it... I just can't think right now and I don't know how I would call that function? I have to use ref parameters and make a function for ...
[no replies]
by miky
C_ubuntu_program
 
OK... I have a major problem if someone could be kind enough and had the time to email me a program C for ubuntu that does the following i would be mostly oblig...
[1 reply] : Sounds like a homework assignment. We'll help you if you post your ... (by jsmith)
by sacred
Difference between Call by Value and Call by Reference...
 
Hi This is a really noobish question I'm sure. I've read my books coutless times, But I've really been having trouble with this concept. And I'm falling behi...
[7 replies] Last: However reference variables must be initialized at the time of instan... (by jsmith)
repitition struc. Question
 
I am stumped on how to code a program in a book i have. The program also should display the total sales made during the three months. Complete the program by en...
[3 replies] Last: Yes, but it looks messy. If you absolutely cannot use arrays, you can ... (by Zhuge)
problems with getline code
 
Sorry to bother everyone here, but I am having a large amount of trouble with the getline feature of C++. The goal of my program is to read a txt file with the ...
[4 replies] Last: Sorry about the retarded logic in the while loop, I only used what our... (by bazanaka)
arrays do not display expected results
 
I think this is the easiest way to explain my problem here is the code I have built #include <iostream> #include <fstream> using namespace std; int g...
[8 replies] Last: If you have data in those spots, it could screw it up. That's why a v... (by firedraco)
Question about char comparations (1,2)
 
Hi again, now I bring a question about characters. I'm working on a test with C++, but I cant find the way to successfully compare the P3 with RP3 characters, i...
[28 replies] Last: Yeah, it was off the top of my head. cin.clear() or cin.ignore( ... )... (by jsmith)
Full screen in Console app
 
Hi , i am kind of a noob in C++ So i was wondering how can i make my console application full screen... give me an example of how to do it in a hello world! c...
[5 replies] Last: I owe u but its kinda too late i found this #include<windows.h> ... (by minaadel1994)
problem with scanf
 
hey guys, how do i read for an integer, and if i input a character, my program does not crush? thks
[3 replies] Last: cin.flush(); (by jsmith)
November 2008 Pages: 1... 1516171819
  Archived months: [oct2008] [dec2008]

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