Beginners - January 2011 (Page 14)

bool returns false, chdir() still works...
 
ok so i have a function bool fexists(const char *filename) { std::fstream ifile(filename); return ifile; } which simply returns whether or not the fi...
[1 reply] : Figured out, not posting code unless asked. Basically I wrote anot... (by closed account 4Gb4jE8b)
while statements and getch()
 
void pause() { //requires <iostream> <time.h> <conio.h> clock_t pause;//pause is equal to 1 second after pause() was called pause = clock() + 0.5 * CLOC...
[7 replies] Last: no i'm not expecting full portability, aiming for windows xp, vista, a... (by closed account 4Gb4jE8b)
traditional long division c++
 
I need to write a program for traditional long division My program shows the correct answer of remainder and quotient but doesnot show the full division method ...
[2 replies] Last: [co de] "Your code goes here" [/co de] Your program is confusing.... (by ne555)
Strings or char arrays? also cctype question.
 
Ok, first off, is it better to use strings or char arrays. Strings seem much easier to use, but I'm not sure if easier to use means should use. Do each have th...
[5 replies] Last: lol, we all posted within 20 seconds of eachother. (by Kieth89)
Printing any array using FOR loop
 
I'm trying to print any array using this function but I need help dictating the end of any array. I thought I was on the right direction but it doesn't work. ...
[6 replies] Last: #include <iostream> using namespace std; template <class T, unsig... (by m4ster r0shi)
p.l.e.a.s.e. h.e.l.p. m.e. :D
 
i am having trouble with my code it keeps giving me an error saying it expected a ";" before string constant. here is my code #include <iostream> ...
[3 replies] Last: thanx alot that helps a bunch (by cainen172)
Can't figure out why program keeps exiting.
 
Having a little trouble with this. /* Lab3A */ #include <iostream> #include <iomanip> #include <string> using namespace std; void main() { ...
[2 replies] Last: your codes compiled and work fine in my cfree-5 with a little change, ... (by hasula)
by Hulten
Setting CMD title
 
I'm making a simple text based game with C++ on command prompt and I can't find out how to set the title of the window on the command prompt. Can anyone help ou...
[3 replies] Last: Obligatory link: http://cplusplus.com/forum/articles/28558/ (by Disch)
c++ book for objetive questions
 
kindly any one suggest me a good c++ objective question book........
[no replies]
How to compare two files line by line (C++)
 
Hello. I have two files. I want to compare them line by line: first line of first file with first line of second file, second line of first file with second...
[7 replies] Last: Yeah pretty much, but I like my traditional scanf and printf better th... (by rocketboy9000)
Guaranteeing a switch to C:\
 
Currently I'm just using chdir("..\..\..\..\..\..\..\..\") for awhile to try and guarantee a switch to the highest directory... but obviously this doesn't actua...
[4 replies] Last: Thanks again. (by closed account 4Gb4jE8b)
by Batho
Creation of windows programs
 
Hello all! I am new to this pragramming thing and I am enjoying it but I am lazy to go through all the notes i.e. Functions, Algorithm, Arrays, Namespaces, etc....
[8 replies] Last: File>New>Project>GUI Application>Framed Base>Name It>Done (by some random dude)
text
 
Hello how i can save text in char inputed with cin without knowledge how much characters there is in the text in advance? Thanks.
[3 replies] Last: how i can dynamically resizing the array (by theimmortalbg)
Getting wrong values with class composition
 
I'm trying to figure out how to use composite classes, but I'm having a lot of trouble getting the values correct. The output gives me a -889888282 number inst...
[19 replies] Last: http://www.cplusplus.com/reference/iostream/manipulators/setfill/ ... (by ne555)
Is this a good calculator code?
 
#include <iostream> #include <windows.h> using namespace std; int main() { float first; float second; string choice; select: Beep(200,10); cout << ...
[12 replies] Last: [quote=some random dude]If we have a variable declaration in a loop, o... (by coder777)
mathematically phrase input in console
 
Hi I want to give the console a mathematically phrase like this: (3*x^2+7-2/x^6)/3^x and then input a number and it the program can give me the answer and a...
[1 reply] : It's a problem of parsing. It's not really hard. You have to read the ... (by hamsterman)
Make console loop the program until user is ready to quit
 
So im making a program that would translate date from dd/mm to it is <day> of <month> I want to let the user make as many translations as he wants before qui...
[5 replies] Last: Hey Filipe i cleaned up my code thanks to you here is the new one #i... (by adrianooo231)
Passing a class?
 
I am trying to declare a derived class conditional on user input and am not sure how to implement it. how would I pass the fact that the user has chosen the "b...
[10 replies] Last: You're on the right track I think. I'm not too familiar with Securitie... (by Computergeek01)
by acorn
can someone check if my assignment operator looks ok
 
can someone tell me if my assignment operator looks ok. i am suppose to delete in the assignment right. sorry i did the copy constructor now im doing the assign...
[3 replies] Last: this thread is a little old but i wanted to answer. its because it wa... (by acorn)
Classes & Inheritance
 
Alright so in Visual Studio 10, my program compiles okay. But IntelliSense is telling me that there's errors in my project. [Grad.cpp] - The errors are here ...
[1 reply] : A universal solution to those problems is deleting the .ncb file! (by hamsterman)
January 2011 Pages: 1... 1213141516... 42
  Archived months: [dec2010] [feb2011]

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