
please wait
If someone would take the time to review my code I would appreciate it. |
edit: removed because it is no longer relevant. |
Oct 17, 2009 at 4:21pm
[no replies]
|
by award982
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... |
Oct 17, 2009 at 2:10pm
[2 replies] Last: You can use the function itoa() however it is not standard and may n... (by mcleano)
|
by GriffinWolf
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 ... |
Oct 17, 2009 at 12:14pm
[4 replies] Last: Maybe I'm being particularly dim tonight (in which case I should proba... (by GriffinWolf)
|
by kevinchkin
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... |
Oct 17, 2009 at 10:50am
[2 replies] Last: You can also use >> operator for input Don't use >> with cin , see h... (by Bazzy)
|
by kenryuakuma
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? |
Oct 17, 2009 at 2:26am
[1 reply] : Never heard of "instance variable", but here: Type object; object ... (by helios)
|
by Beatlesfan94
Do while loop not working correctly
|
Here's my code: #include <iostream> int main (void) { using namespace std; int firstDigit; int secondDigit; int thirdDigit; ... |
Oct 16, 2009 at 9:52pm
[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 ... |
Oct 16, 2009 at 8:26pm
[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... |
Oct 16, 2009 at 7:43pm
[7 replies] Last: I think this will do the job jsmith. Thanks. Could you explain to be... (by JamesB)
|
by Joliedoll
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... |
Oct 16, 2009 at 4:18pm
[6 replies] Last: another thing i see is that the else if statement will never get ran b... (by btripp)
|
by Moose9999
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... |
Oct 16, 2009 at 2:56pm
[2 replies] Last: Thanks for the advice, I'll look into that for sure!! For now, can an... (by Moose9999)
|
by mrb9337
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... |
Oct 16, 2009 at 1:38pm
[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 ... |
Oct 16, 2009 at 12:49pm
[2 replies] Last: Awesome :D (by eiba)
|
by zmarcoz
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 ... |
Oct 16, 2009 at 11:18am
[5 replies] Last: DirectX only works with triangles because they are the simplest possib... (by jRaskell)
|
by Waqar Anwar
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 |
Oct 16, 2009 at 9:28am
[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... |
Oct 16, 2009 at 5:25am
[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 ... |
Oct 16, 2009 at 4:02am
[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... |
Oct 16, 2009 at 2:07am
[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? |
Oct 16, 2009 at 12:45am
[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... |
Oct 16, 2009 at 12:15am
[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 ... |
Oct 15, 2009 at 11:03pm
[13 replies] Last: I would recommend the SDL library too ... even though I never got it w... (by DrChill)
|