Beginners - September 2009 (Page 16)

by aldo
fopen or fstream?
 
So I am pretty new at C++, I know the basics and stuff, however I would like to begin to learn files, however, I am not quite sure what it is I should learn. ...
[2 replies] Last: Here is a tutorial on file streams: http://www.cplusplus.com/doc/tutor... (by Bazzy)
Resizing dynamically allocated memory
 
I'm dynamically allocating memory for a 2-d array (char ** genresList) thus: genresList = new char * ; for ( int row = 0; row < numStrings; ++...
[2 replies] Last: Helios: Thanks. I thought as much but just wanted to check. (by paoloricardo)
Quick questions about freeing memory
 
If I have a vector as a instance variable of a class, do I need to free its memory in the deconstructor? I think no, but I just wanted to make sure. I'm also ...
[2 replies] Last: Thanks! (by SMuzzlim4)
What is the best way to compile these dependencies?
 
I have three files I want to compile: Object.h, Object.cpp, Play.cpp. Both the .cpp files call #include "Object.h'. Currently, I'm attempting to compile t...
[3 replies] Last: Try declaring the function inline in Object.h. (by jsmith)
Command Line arguments
 
I have been toying with this code for a few minutes, and I cannot find a way to convert the third argument from the command line to an int. int main( int ar...
[2 replies] Last: { std::stringstream stream(argv ); if (!(stream >>size)) ... (by helios)
How do I get past the "kick" feeling?
 
I love to program, I love programming, it's so fun just learning that I can create anything I want to if I take the time to learn how. I'm even on this game des...
[1 reply] : Welcome to the world of computer programming. Some days its exciting,... (by Return 0)
Array trouble
 
I'm double posting because I'm not really sure which I should post it in I can't get my matrix working :( yes I read the documentation but ... I ... don't...
[5 replies] Last: indeed (by DrChill)
a for loop statement problem...
 
write programs to calculate each of the following quantities, in each case, N indicates a quantity specified by the user. a. 100+101+102...+500 b.1+1/2=1/4+...
[2 replies] Last: Have you seen these? http://cplusplus.com/src/ http://cplusplus.com/... (by kempofighter)
by gdsimz
pow(x,y) is giving me varied results
 
Hi all, I am trying to compute the monthly payout received from an invested annuity. I have determined that the finance mathematical formula is: pmt = pv...
[1 reply] : Post a main function that shows "exactly" what you are compiling and e... (by kempofighter)
by beent
Tic tac toe program
 
Nevermind, problem resolved. Sorry for wasting time. Your suggestion to learn debugging helped a ton! I never knew you could follow variables throughout a progr...
[1 reply] : What compiler / IDE? Have you used the debugger yet? This is the typ... (by kempofighter)
I need to compare two characters
 
Hay! So im trying to create a simple text-based game with c++, i have got verry good results so far, but i dont understand how to do the yes/no thingy im...
[5 replies] Last: this thread whent over to hear: http://www.cplusplus.com/forum/beginne... (by closed account z05DSL3A)
Brute Force
 
Right, so you've read the title and you thought wanna be hacker eh? Wrong, I really just want to try this and make it as a cool gimmick to try it out and see wh...
[13 replies] Last: Ok thanks everyone for all your help, seems its a bit too advanced for... (by arcadiu)
array type of programming for assignment
 
hi.. i'm new here..my cousin has this c++ assignment..but he said he doesnt know anything about programming.so he ask me to ask u guys in this forum. he said th...
[5 replies] Last: Oh, you're so obvious... HURRR DURRR HOW DO I TRICKED PEOPLE INTO DID... (by chrisname)
Class instance runtime error
 
Hi all, I just made a class Data for representing dates, and when I instantiate it, it's giving a runtime error. However I don't know which is that error...
[1 reply] : Found out the problem. Solved now. :) (by stormqueen1990)
I can't get it right.
 
#include<stdio.h> #define LITRES 20 int main() { int convert; float convertt; printf ("Enter a number between 10 to 20 gallons:") scanf("%d,", &c...
[3 replies] Last: You forgot a semicolon after your first printf and put an extra forb... (by stormqueen1990)
difference between iostream and cstdio
 
hi everyone~~~~~~ my question is same like the title ~~~~~~ what is the difference between header file iostream and cstdio?? i have read this page http://www...
[9 replies] Last: oo~~~ i see~~~~~~~~ haha~~~~actually i just started to learn C++ ab... (by loveless)
Problem with defining Template Function
 
Hello, I receive the compiler error Card.cpp:13: undefined reference to `std::string to_String<int>(int const&)' from this code: Object.h: cla...
[6 replies] Last: BTW, to_String() is equivalent to boost::lexical_cast<std::string>(). ... (by jsmith)
visual c++ 2005 be infected bywin32/genetik ?
 
hi, i encounter a strange thing, can any one give a explanation? my host run on w2003server sp1. and i have installed vc++2005 and vc++6.0, when my app...
[1 reply] : This is a programming forum. (by helios)
cplusplus for beginners
 
where can i find free downloadable installer of c++?
[4 replies] Last: thank you.. ^_^ (by sharmainetobias)
cin and cout are different
 
anyone have any idea whey when i use #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv ) { int name; ...
[6 replies] Last: I don't think there needs to be 5 (6 now) different posts telling him ... (by Warnis)
September 2009 Pages: 1... 1415161718... 23
  Archived months: [aug2009] [oct2009]

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