Beginners - September 2010 (Page 5)

Recursive File Inclusion problem
 
i want to make a chess game consisting of the following classes: Game // will have a player as a private member, the game object will be the interface between ...
[2 replies] Last: Ok i see i forgot to post 'Player' behind 'affinity', Though, If i try... (by FinalFortune)
by ritika
Why it doesn't work as expected...
 
Hi all, I am new in C++. I tried to get the result like this: (n, i) 0, 0 1, 0 2, 0 .. .. 16,0 -----------------// reset here when n is 16 ----...
[3 replies] Last: break means break out of the innermost loop containing the break. ... (by sohguanh)
matrix
 
Can someone check my code and see what is wrong :( it complies but the outputs are not correct. The numbers don't add up properly. matrix.cpp #include "...
[12 replies] Last: Actually macros are a source of frustration for run-time errors back i... (by sohguanh)
Math in programming (1,2)
 
Wrong part of the forum? I don't know. I couldn't find a better place. Maybe a mod can? Question: What kind of math is needed in programming? Is it hard mat...
[34 replies] Last: In general, the issue is, you are discretizing everything - from the v... (by kfmfe04)
trouble with mortgage calculater program
 
Hi I am trying to write a program that computes monthly interest, monthly bill and new balance. The problem is that In one of the functions I am using the varia...
[1 reply] : Divide and conquer - attacking that program's syntax all at once would... (by closed account 3hM2Nwbp)
C++ as a first language
 
I have seen some comments on this forum as to the difficulty of starting C++ as a first programming language. Is there a better language to start with? ...
[16 replies] Last: I've always looked at this question differently than most people. In ... (by closed account 3hM2Nwbp)
got a question about Reading from a file
 
my question is this... i was givin a paragraph and was told to write a program that will read from a txt file and print out how many words are of a certain leng...
[7 replies] Last: Replace the for loop in the code with a while loop. (by naivnomore)
Changing variables.
 
Would there, by chance, be a way to have a variable constantly and automatically change to equal another variable? Say you have variables o and p. int ...
[2 replies] Last: Ah, thank you :) (by dstrichit)
an error in my code
 
this is my code #include <iostream> #include <cmath> #include "graph1.h" using namespace std; int main() { //variables int jan = 0; int feb = ...
[3 replies] Last: We need to know more about drawRect, it seems. Could you maybe show us... (by Albatross)
Runtime Error in I/O Exercise
 
I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it r...
[1 reply] : Nobody has yet replied to my question. My question was solved on anot... (by nathan10)
by Kness
Integral/enum type needed.
 
Hey again.Each new program I try to create brings about new errors I don't know how to deal with. Can someone explain to me what I'm doing wrong here? It' telli...
[4 replies] Last: I didn't hallucinate. Trust me. My instructor writes the start of the ... (by Kness)
Storing Char Problems
 
Hi everyone. I got a few projects from school today. The last one I need to do is make a program were the user enters a vowel from the keyboard. If it is a vowe...
[4 replies] Last: I wouldn't check for lower AND uppercase characters - just convert it ... (by Kyon)
txt to matrix back to matrix.
 
i got the barebones of my program down. i need to split it into two functions one that prints the amtrix back into my txt file and the other that reads my input...
[1 reply] : Oopsy: The problem is this line: void print_matrix ( int matrix ... (by kooth)
i have a problem with an equation
 
i need to Compute the length of the line using the distance equation given below: √(x1-x2)2 + (y1-y2)2
[7 replies] Last: The formula is completely wrong for the reason Albatross has pointed o... (by helios)
by neml
binary to decimal converter, needed code review
 
basically almost everything works, besides the output my output is 2 less than it should be. char again = '1' ; int const size = 8 ; int num ; int...
[7 replies] Last: @StereoMatching i never used "bitset" class, but it seems to work, s... (by neml)
codeblocks vs visual studio
 
Hi everyone =) I'm really new to C++... Codeblocks is free, so simple and easy to use.. So the question is... Why would people say so much to purchase visua...
[17 replies] Last: Oh, c'mon, laugh a little, helios. It will only cook your head from th... (by Albatross)
by tonnot
undefined reference error. Any idea ?
 
I have this code at myclass.cpp #include "Wfile.h" string file_path="c:\\afile.txt"; WFileUtiles wfileutils; tam_file= wfileutils.sizefichero(file_path); ...
[2 replies] Last: Oh my god !! I'm .... Thanks binarybob to answer this stupid questi... (by tonnot)
Raw Memory Dump/Access Outside Memory
 
This is sort of a two part question. The first (and more practical) is, can I dump or somehow view the memory my program is using to a file or to standard outpu...
[6 replies] Last: I should clarify - my goal here isn't to crack software. I was just cu... (by closed account Lv0f92yv)
what is the output of this snippet ?
 
Hello , I had written a small C code snippet. Why the below snippet doesnt print anything. #include<stdio.h> #define TOTAL_ELEMENT (sizeof(array) / si...
[10 replies] Last: thanks to all of you .... (by ravikandagal1)
Beginner VS Compiler
 
Ok. So after searching and talking to people on many forums across the web, it has become painfully clear to me some people cannot understand what it means to ...
[5 replies] Last: go to www.mingw.org download the installer (choose the automatic, tho... (by Hell0 W0rld)
September 2010 Pages: 1... 34567... 32
  Archived months: [aug2010] [oct2010]

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