Beginners - October 2009 (Page 13)

If someone would take the time to review my code I would appreciate it.
 
edit: removed because it is no longer relevant.
[no replies]
a big number to separate characters
 
Hey all! I need to separate a number to different numbers, for example something like this int i,x,y,z; i = 123; and i need the x value to be 1, y value...
[2 replies] Last: You can use the function itoa() however it is not standard and may n... (by mcleano)
Problem with ostream overloading
 
Okay. I have searched both my textbook and the internet for the past few hours, and I've made progress in various ways - but I'm still having a problem with my ...
[4 replies] Last: Maybe I'm being particularly dim tonight (in which case I should proba... (by GriffinWolf)
Reading from standard input
 
Hey Guys, Just wanted to make sure whether this is the right way to read from standard input and if someone does ./a.out < inp1 For string: stri...
[2 replies] Last: You can also use >> operator for input Don't use >> with cin , see h... (by Bazzy)
Instance, instance variable and instance of variable
 
Well...Why is it called instance variable, instance? What is the different between instance variable and the instance of variable?
[1 reply] : Never heard of "instance variable", but here: Type object; object ... (by helios)
Do while loop not working correctly
 
Here's my code: #include <iostream> int main (void) { using namespace std; int firstDigit; int secondDigit; int thirdDigit; ...
[3 replies] Last: You're have to move the while(true) statement to the end of your do ... (by QWERTYman)
by triz
Unhandled exception
 
I have written this program, which compiles with no warnings and no errors, but when I run it, it seems to either freeze with the error "Unhandled exception at ...
[4 replies] Last: Can't think why that would make any difference. (by guestgulkan)
by JamesB
2d Array Checking / Error Handling?
 
Dear All, I've just started learning C++ and am wondering if there is a way of checking whether a passed array is 2d? (The reason I've mentioned Error Check...
[7 replies] Last: I think this will do the job jsmith. Thanks. Could you explain to be... (by JamesB)
for loop problem
 
Please, help! I have this problem to do and I am a little stuck. I believe I have most of the code down, but some of it I'm not quite sure how to do. The pro...
[6 replies] Last: another thing i see is that the else if statement will never get ran b... (by btripp)
Problems with streams
 
I actually have a few problems in one with this. First of all, can I make a pointer and assign it to an ifstream? Problem 2: Can I pass a stream to a functio...
[2 replies] Last: Thanks for the advice, I'll look into that for sure!! For now, can an... (by Moose9999)
My program isn't looping
 
I've stared at this forever, and I can't figure out why it isn't looping. Everything works fine, except it isn't looping. Maybe it's that I've been staring at i...
[4 replies] Last: Ohhh dang, you're my life-saver. Thank you so much :):) (by mrb9337)
by eiba
How do i write a for loop to a file?
 
Hi. I'm just wondering how i write a for loop to a file. I've tried to look at generals examples on how to write to a file, but i never managed to get this to ...
[2 replies] Last: Awesome :D (by eiba)
know how draw a triangle, but not a square
 
Hi, I follow a directX tutorial to draw a triangle http://www.riemers.net/eng/Tutorials/DirectX/C++/Series1/tut5.php (The bottom of the webpage) I ...
[5 replies] Last: DirectX only works with triangles because they are the simplest possib... (by jRaskell)
Input in a char pointer
 
How to get a whole string input from a user with whitespace charaters and store it in a character pointer? Please Please Help me
[3 replies] Last: Thanks I got the point (by Waqar Anwar)
by JamesB
Make a 2d Array into a Row?
 
It seems (from http://c-faq.com/aryptr/dynmuldimary.html) that it's possible to convert a 2d array into a row. Is this possible if, say, I've passed a 2d array...
[2 replies] Last: #include<iostream> using namespace std; void mult_to_row(int arg ... (by btripp)
Getline & cin.ignore trouble
 
Hey guys just needed some help with a code for school, it is pretty basic but i'm stuck on an error that occurs while debugging. here is the exact code I've ...
[6 replies] Last: You are using std::cin>> on lines 27, 34, and 41, don't mix it with st... (by firedraco)
Fibonacci Green Crud
 
Here is the question/goal: // Write a program that determines the size of the green crud population // on any given day. // Assumes that green crud reprod...
[3 replies] Last: Thanks for the help but I had someone else help me. Everything was fin... (by Silverplaya909)
how do I destroy a text file.
 
How do I delete a text file when I am finished with it? And does it make a difference whether it is Windows or Linux?
[1 reply] : http://www.cplusplus.com/reference/clibrary/cstdio/remove/ Good luck! (by Duthomhas)
by MikeT
Problem with a deque object with embedded deques
 
This could be as simple as what's wrong with the following line of code :- wc_children .wcc_chld_adlt_nmlabel.push_back(NULL); However, this works first...
[3 replies] Last: Ha, that MikeT's an idiot. The issue (the idiot hopes, only basic c... (by MikeT)
How difficult would it be for me to make a roguelike?
 
We recently had an assignment at school to create a Diablo clone in the console window with text only. I had lots of fun with it and now have an urge to try my ...
[13 replies] Last: I would recommend the SDL library too ... even though I never got it w... (by DrChill)
October 2009 Pages: 1... 1112131415... 25
  Archived months: [sep2009] [nov2009]

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