Beginners - November 2010 (Page 17)

minesweeper
 
I need help for this project, It was possible for me to make it work but I need some help with the very last function called: * void clearField(int A , int...
[4 replies] Last: I did not understand about this website and code suggested to color fo... (by jsebastian87)
The code compiles and has output successfully but segmentation fault
 
The code is as follows. It compiles successfully(no error message when i compile it with g++), has correct out put and produce a graph. But the graph appeared f...
[2 replies] Last: Thanks! I am so careless... (by gracinda710)
Inheritance, printing conversion from decimal to other bases
 
I am writing a program in which I have class 'number' with derived class to convert to binary, octal and hex. I need number to hold the single integer input an...
[9 replies] Last: int *dec_binary(int i) { int n = 0; int k = 1; int *p = NU... (by firix)
by tonnot
About .c and .h files and IDES
 
Someone can give me a reason because modern IDES have not the feature of to write semi-automatically the header data? Sincerely, as a beginner of course, I don...
[no replies]
beginner
 
Hello, actually i am learning bases of C++. And have alot of interest in programming,and want to be a good programmer. Please suggest some good ebooks of C++. T...
[2 replies] Last: You can find some tutorial video on youtube for example: C++ Tutori... (by screw)
by fabiux
header problems
 
Hello everybody,I am a newbie and in my program I have somethign like this // file header_name.hpp #ifndef header_name #define header_name int arr = {...
[1 reply] : You'll have to post more of your code for us to be able to help. Pleas... (by Pax)
Using a condition in an if statement only if another condition is true
 
Hi there, I am trying to write an if statement to filter out some data, starting with 5 conditions a,b,c,d,e. I am wanting to fill the histogram with only...
[2 replies] Last: Thanks Athar for the reply. Took me a while to actually understand wha... (by jasonyctam)
can I make c++ print output "online"
 
Hi guys. I have noticed that when I print a message to screen, the message is usually displayed a little bit after the current loop is running. Usually this...
[3 replies] Last: fflush(stdout); (by coder777)
fscanf problems
 
I haven't needed to use fscanf before, so I'm not very familiar with it... Everything is working fine except that the numbers it inputs are not what's in the fi...
[4 replies] Last: good point. (by rocketboy9000)
by murva
Value from an object on stack
 
Hello, I put an object of class field, that contains int x and int y. I put it in a stack. The program below is working, but I would like to know how to get ...
[3 replies] Last: hey, in which file and project this program run? (by Ihtisham)
by Rave
link list locate error?
 
hello, i wrote this program to test searching of link list objects, #include <iostream> using namespace std; class list { private : in...
[no replies]
by Bri426
Writing functions and using arrays.
 
I'm working on a program for my C++ class. The assignment uses a file that includes student names and three test scores. For example: Name Test1 Test2 Te...
[14 replies] Last: Please use the code tags But, all that prints to the screen is: ... (by coder777)
by tomkur
problem of a loop with time comparison
 
I am trying to increase the value of variable t by one per 10ms for 60s. Ideally, the value of t should be closed to 6000. I attempted to do it through a simp...
[3 replies] Last: C++ itself does not have any sleep functions at all, usleep etc. is pr... (by Athar)
static_cast
 
I'm sorry, but I've looked for this everywhere. In my book they start using this and don't say what it is. I've looked on the internet, but it still is unclear ...
[3 replies] Last: http://msdn.microsoft.com/en-us/library/c36yw7x9%28VS.80%29.aspx Th... (by closed account S6k9GNh0)
input stream crashing program
 
I've been working on my first project in C++, and I have a function where I get a users name. It goes like this: void getName() { char name ; ...
[7 replies] Last: Make it if (playerName.length()>10)playerName.resize(10); or player... (by Athar)
Building a Triangle
 
I'm trying to build a triangle for a program but I can't seem to get it built the way I want. I feel that I have part of my code right, but something definitel...
[8 replies] Last: Thanks for your help there HooklessFastener but I found out today that... (by Brianzor)
Separating into functions
 
For the following (working) code, I need to separate the tasks into functions. I was supposed to do this for my assignment, which I received a bad grade for, bu...
[1 reply] : Aren't you getting comments on your code when it is marked? Anyway, w... (by Athar)
Functions, Files, and Arrays.
 
Hey everyone. I've got this assignment for my CSE class that I'm really lost on and I'd really appreciate some help. The tasks are as follow. Task 1. Prompt...
[no replies]
gets(); on my nerves!!
 
Hello out there people. Just on the verge of slashing up! No amount of books and forums can fully teach you c++. In the end you need real people that know what ...
[17 replies] Last: Me too. But we need to respect his desires. (by Duthomhas)
by Nastix
Inputing Data w/o Pressing Enter
 
Is there any way to allow the user to input a single character/int without requiring them to press enter in order to continue with the program?
[4 replies] Last: Rather than install NCurses, I would get a lib for making games, since... (by Disch)
November 2010 Pages: 1... 1516171819... 42
  Archived months: [oct2010] [dec2010]

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