
please wait
by even821
object oriented programming?
|
i want to get into object oriented programming using c++, and a thought crossed my mind.... would it be eaasier to learn if i learned an object oriented prgr... |
Sep 30, 2011 at 11:57pm
[6 replies] Last: il keep that in mind, thank you for your advise :D (by even821)
|
by stevew9948
Array Questions and infile question
|
for a project I am working on I need to use infiles. Is there a way to put 5 infiles into an array...and have them selected randomly once the infile is se... |
Sep 30, 2011 at 11:10pm
[5 replies] Last: for those trying to help me, without the .txt files this is what i hav... (by stevew9948)
|
by UrbonGamer
Please help me with this while statement and looping
|
#include "stdafx.h" #include <iostream> using namespace std; int main() { int x,y,z,a,b,i; y = 2; z = 4; a = 6; b = 8; i = 0;... |
Sep 30, 2011 at 10:08pm
[1 reply] : This possibly (?): if( response == 'Y' ) { cout << " Great! What... (by closed account zb0S216C)
|
by khaled124
reloading data from text file
|
Hi all I am reading data from a text file line by line using ifstream and I want to reload the content of the text file after changing some data in the origina... |
Sep 30, 2011 at 9:58pm
[1 reply] : Yes it's possible, but that would mean truncating all current data wit... (by closed account zb0S216C)
|
by Caleb Dunn
Segmentation Fault
|
#include <iostream> #include <cstdlib> using namespace std; void move_rings (int n, int src, int dest, int other); int testSign (int number); int newN... |
Sep 30, 2011 at 9:36pm
[3 replies] Last: Dynamically allocating variables is a no-go since you're low on memory... (by closed account zb0S216C)
|
by curious
GCD and LCM of "n" numbers nor 2 numbers
|
i need program that can find GCD and another one for to find LCM of "n"numbers not 2 numbers thank you for trying answering |
Sep 30, 2011 at 9:09pm
[1 reply] : First approach std::accumulate( v.begin(), v.end(), 0, gcd );... (by ne555)
|
by UrbonGamer
Help with my looping function
|
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int main() { int x; unsigned short int y; unsigned long int ... |
Sep 30, 2011 at 8:44pm
[4 replies] Last: Hey thanks very much but can you help me with this one I cant quite gr... (by UrbonGamer)
|
by SrWalterR
Shift Left operator
|
I have a line in my code that I am trying to understand. It is: LPC_PINCON->PINSEL3 &= ~(3UL<<30); I understand the result but still do not completely un... |
Sep 30, 2011 at 8:44pm
[3 replies] Last: ... but don't forget the final result is: 0011 1111 1111 1111 1111 11... (by Catfish)
|
by Ben Duncan
<cctype>
|
I'm having a bit of trouble with some code. I'm writing a function that fills an array, but when I try to terminate the program using isdigit() it doesn't ... |
Sep 30, 2011 at 8:33pm
[11 replies] Last: Thank you. Sorry if I sounded a bit worked up earlier, a few things h... (by Ben Duncan)
|
by jakelime
help guys..
|
hi guys im new in this forum and im searching for a code to learn about using "ifstream and ofstream" thats when i came upon this forum.. im a newbie when it... |
Sep 30, 2011 at 7:30pm
[1 reply] : This is not a hard program, as you said, but you have to know some thi... (by CosminNTG)
|
can you compile without a compiler |
i mean could you write a .cpp in notepad and compile it in cmd? |
Sep 30, 2011 at 6:25pm
[3 replies] Last: First you get yourself a compiler. If you don't have one, try http://s... (by hamsterman)
|
by johncplus
Examples practice code to learn
|
Does anybody know a good website that offer lots of sample codes with incremental difficulties to practice and study. Examples that will cover all sorts of to... |
Sep 30, 2011 at 6:00pm
[1 reply] : http://www.cplusplus.com/forum/articles/12974/ That's where a lot of ... (by Ben Duncan)
|
by Qurbanli
notice this
|
Is there any mistake? I want this program to shift numbers cyclically one right position. #include <iostream> using namespace std; int main() { ... |
Sep 30, 2011 at 5:53pm
[no replies]
|
by ATXVulcan
New Here - Need a Bit of Help
|
Hi all, I'm working a lab for my first exam in my first programming class. The concept is this: The Silly Savings and Loan Company just opened up with a ... |
Sep 30, 2011 at 4:14pm
[no replies]
|
Trouble with using strings in classes |
Never mind... I found my mistake. I forgot to put romanType:: in front of the method name. I'm getting an error that says my variable "romanNum" is undefined... |
Sep 30, 2011 at 3:51pm
[2 replies] Last: Thanks Moooce. (by horseatingweeds)
|
Change Key, Virtual Keyboard |
How i change? 9 to ( 0 to ) [ to { ] to ] I am making a utilitarian to help to program. I used as an example this: http://www.cplusplus.com/forum/beginne... |
Sep 30, 2011 at 3:22pm
[no replies]
|
by BHill
Header file
|
I am using Borland C++ 6 Enterprise and have just typed a project from my book. I now need to create a header file and my book does not say how to do it(even t... |
Sep 30, 2011 at 3:15pm
[19 replies] Last: I figured it was because I didnt shower yesterday :( . -BHill (by BHill)
|
by Nisheeth
A little doubt about delete
|
Can delete be used like this: delete a,b,c; Where a,b & c are dynamically allocated variables? This doesn't give an compiler error, or even a warning. ... |
Sep 30, 2011 at 3:08pm
[11 replies] Last: There is a use, namely avoiding having to start a block after an if/wh... (by Athar)
|
Invalid initalization |
Hey what's up, I'm back with more problems. This morning I was trying to make a program that outputs all the ASCII characters to a textfile, then outputs that s... |
Sep 30, 2011 at 2:46pm
[2 replies] Last: Haha thank you . I just noticed the cout.put thing, i have no idea. I'... (by georgewashere)
|
Question relating to delete. |
What is the point in delete beany.str? I thought deletion was only to be used with "new" dynamic memory? #include <iostream> using namespace std; #inclu... |
Sep 30, 2011 at 2:45pm
[2 replies] Last: It was actually a student's code and I often look to him for advice. I... (by georgewashere)
|