Beginners - October 2008 (Page 13)

Controlling the setcolor function
 
How I can do make it paint only the character in that loop? #include <iostream> #include <conio.h> #include <cstdlib> #include <time.h> #include <string...
[no replies]
creating custom bit streams
 
Ok, I'm trying to create my own class I call bit_stream that handles i/o operations but through internal implementation can do i/o at the bit level. I'm essent...
[no replies]
RPG random position problem...
 
#include <iostream> #include <conio.h> #include <cstdlib> #include <time.h> #include <string> using namespace std; int main() { int x = 5, y = 4,...
[2 replies] Last: Thanks! (by HeatMan)
by gd566
int and char issues
 
I have a question about errors Ive seen, while running my program, when using int and char. int If I input letters instead of a numbers my program goes cra...
[2 replies] Last: You can use exceptions to validate input (by Umz)
by Hazer
Get program name
 
Does anyone know how to get my program name even if I rename it?
[2 replies] Last: try with this: #include <iostream> using namespace std; int ... (by Bazzy)
Simple efficiency question
 
I'm doing a simple addition with string. Which one is more efficient: In the first one, the program will do short jump. For the second, program may access ca...
[5 replies] Last: Another question. Which one is more efficient (now should be in memory... (by chu121su12)
Header files.
 
I'm confuse on what .h files do and why you need. I'm guessing its where you put in all the libraries that you used. If you can tell me if I'm right or wrong th...
[5 replies] Last: The most important thing about using header file is Encapsulation, and... (by nrc1982)
by Claymz
3D Distance
 
hi, i want to make a program, which will be able to compute distance between two points in 3d space, but i get certain errors: => 3.7.3 3d distance.cpp(11...
[2 replies] Last: ty my bad :) (by Claymz)
Problem recognizing EOF
 
Basically I'm in the middle of writing a program, and I want the only way for it to be terminated is when the user hits CTRL^D. Unfortunately, i have found that...
[2 replies] Last: Yeah, code would be nice...I could guess you could try a break maybe..... (by firedraco)
int and argv[][]
 
I have a nice big problem, that I've happily minimized down to a little problem. Unfortunately, my little problem is the area which I always struggle with, and...
[2 replies] Last: You can use the function static_cast in order to cast the variable fro... (by locorecto)
Opening a Second Console Window
 
Is it possible to open a second console window within a program? Thanks in advance, CheesyBeefy
[6 replies] Last: Hehehe...I suppose there is a good reason for everything... (by LacViet)
program naming convention
 
Hi all, im an absolute beginner (only installed ubuntu yesterday) and am trying to learn programming in c++ and python in a linux environment for a project I ha...
[1 reply] : hello - system command. Hello - command doesn't exist ./Hello - run ... (by Repentinus)
Books for Beginners
 
Hello, i've recently started University on a Computing degree and was wondering if anyone could recommend some good C++ books for beginners? I've ordered ...
[1 reply] : The best book for C++ developers I think to be "The C++ Programming La... (by Bazzy)
Check my sudoku solver
 
Hello, I'm making a sudoku solver for a competition in my college. Every sudoku puzzle is a 9x9 grid, and if every row is put the the right of the row above i...
[no replies]
How to execute something from C++
 
How would I execute another program in C++?
[1 reply] : You can use system("c:\program.exe"); (by Hazer)
Gpa.cpp
 
Here is what I have so far. However, I can get the program to compile but without the right output. Can anyone point me in the right direction? Make a pr...
[1 reply] : for the function, openFiles(), might I suggest that your variable, gen... (by ja23jr)
incrementing arrays
 
Hi, currently writing my 4th console app and was wondering if it were possible to increment an array var? The general idea is that the app runs a function and s...
[5 replies] Last: doesn't matter, simple problem to fix, I was asking it to loop 33 time... (by o0OpsyphiO0o)
fgets proplem
 
With this source code I am scanning for txt files in a folder called texts. I want to try to open a text file and print its contents to the screen (about a word...
[no replies]
for loop
 
hello all, I'm university student and i have final exam in c++ on monday very soon so i need some help how to write a program in for loop the given out...
[2 replies] Last: By the look of it, you need 3 loops. (for) will work fine. 1. The ... (by LacViet)
Creating an application?
 
Hi to all. Firstly i'd like to say thanks for such a great learning place thi site has :D I'm just wondering something, i'm still learning the basics of C...
[1 reply] : You use Window API. But it's really difficult to learn. I am currently... (by LacViet)
October 2008 Pages: 1... 1112131415... 20
  Archived months: [sep2008] [nov2008]

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