Beginners - January 2009 (Page 14)

Text Color in C
 
Hi guys, I'm starting with Microsoft Visual Studio 2008 - language C and i don't find anything to change text color in console. Someone have a tutorial of it...
[3 replies] Last: thanks guys, i will see it and try implement. Daniel Gomes (by danielcsgomes)
Searching for keywords in multiple text files
 
Hello, I'm working on a code for my project at college. The goal of the project is to find and extract keywords, and the sentences, which contain these keyword...
[1 reply] : IMO. Take a different design technique. Load the keywords into a v... (by Zaita)
Program window wont show up when I add a function.
 
For some reason when I add the code for this function, without even calling it, my main window just refuses to show up. I was having problems making dialog b...
[8 replies] Last: No worries man, glad we could help ya find the problem. Even if it was... (by Zaita)
by tition
working quickly with strings: need char*
 
Dear all, I am writing a program for certain rather heavy mathematical computations and I use WINAPI functions for graphical output for debug purposes. I...
[2 replies] Last: Thanks a lot! Worked out perfectly :) (by tition)
solution of tridiagonal matrix
 
//tridiagonal #include <iostream> #include <vector> #include <math.h> using namespace std; #define m 4 template<class T> <T> tri(int n, vector<T> a,v...
[3 replies] Last: If Warnis is right you'll need to add return 0; to the end of main() a... (by Malachi)
Problem with Point Selection?
 
I have an array of x and y values representing points on a grid. the arrays are x[0...n] and y[0...n] where the user inputs the n and inputs all of the coordin...
[2 replies] Last: The distance between two points is the square root of (x1-x2) 2 + (y1... (by Warnis)
by Gib
Turtle vs Hare
 
Hi i want to make a program that simulates a hare racing a rabbit. The actual program would look like this on the screen. |H===================| |R=======...
[7 replies] Last: oh ok i appreciate the help. i just thought u missed that part (by Gib)
use of conditional operator
 
Dear sir, I am a beginner. I am learning how to use conditional operator. I have a question a salesman gets a commision at the rate of 15% if sale is more th...
[5 replies] Last: You can use an int to hold the result, but make sure you convert from ... (by Zaita)
by pisca
Basic precision
 
I have value 1.5555 setprecision(2) then 1.56 a=1.5555; cout << "a = " << fixed << a << setprecision(2) << endl; b=2; cout << "b = " << fixed << b << set...
[1 reply] : It's not...a is still 1.5555, even though you are telling cout to only... (by firedraco)
Trouble with first array tutorial
 
I am using the array tutorial on this site and am having trouble getting the code to compile. Whenever I am using a tutorial like this I type the code in inste...
[2 replies] Last: ok so: int example [squared of]={squiggle}; gotcha, thanks... (by Shinji Ikari)
Classes and array tutorials
 
Maybe I am just not looking in the right places but I can't seem to find any tutorials on either classes or arrays on this site. Can anyone point me in the r...
[3 replies] Last: I have a zip file of about 20+ C++ books that I uploaded. If you want ... (by wachtn)
void main()
 
Is it wrong to use void main()...instead of int main()
[9 replies] Last: ahh ok now I understand..... tnx a lot guys.... (by mackocruz)
by II15X
Not sure where to start with program
 
Well I have been slowly making progress in C++, and I want to make a completely simple program where you can: -Write inside of it* (Like notepad) -Save ever...
[3 replies] Last: http://en.wikipedia.org/wiki/Curses_(programming_library) (by helios)
Drunk Walker Arrays
 
Hi, I was given an assignment with arrays. The purpose of the program is to have a "drunk walker" walking around the array randomly leaving a letter in each ...
[7 replies] Last: Ok, Some thing's to point out for you. Line 12: char drunk ; You n... (by Zaita)
by II15X
Question about C++ "Menus"
 
I am looking for a source code containing a menu, I believe a switch case? All I remember is it has: case 1; cout << break; Any comments? Oh and I woul...
[7 replies] Last: The switch statement has been explained by yourself. I pre-emptively a... (by Zaita)
Ahh! can somebody save me!
 
hello, can somebody assist me with my code,i have been reading it for days and i still cant figure out whats wrong with it, it supposed to be a simple program ...
[8 replies] Last: Sorry, but thanks so much helios, duNcan and zatia i figured it out an... (by kittykat)
Procedure too slow
 
Hi! I've programmed a function that rads a .csv and saves its values in an array. The csv looks like that "0,0,0,0,0,1,1,0,0,0,0,1,1," But somehow it's so...
[2 replies] Last: Thanks! TTCworldCoord is of type double . Are the strtok methods much... (by shangzung)
Access to class variables
 
This is pretty basic, but I wanted to find out all the available options on how to do this. I have a class with a variety of variables that are private, if I h...
[9 replies] Last: thanks for everyones help (by mscashmore)
Using if/else to control program flow?
 
I am attempting to make a simple calculator. When I first build the addition part the program compiled and worked fine. but when I put the subtraction part in...
[5 replies] Last: Thanks for your help! Here is the finished first draft: // Calcul... (by Shinji Ikari)
by flasun
Program that will display user info
 
I need a simple program code that will display the following: Hello, User! Your home directory is home/name/User. It is now DATESTRING I need to output: ...
[2 replies] Last: I'm using Redhat Linux (by flasun)
January 2009 Pages: 1... 1213141516
  Archived months: [dec2008] [feb2009]

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