Beginners - April 2011 (Page 15)

getting current day of the week
 
i am writing a simple program, and i need a command to get the current day of the week. I have tried looking for commands associated with time.h, but it seems ...
[2 replies] Last: thank you! i found an answer to my problem, although somewhat lengthy ... (by metl wolf)
New function
 
I know it's void, but i forget how it works
[6 replies] Last: Oh ok (by Richard101)
Tracking handles
 
Hi, I'm studying C++/CLI programming and I have problems with tracking handles. In some examples an object, such as an array, is created using the keyword 'gcn...
[1 reply] : This is a C++ forum, so this doesn't really belong here. You might try... (by Athar)
C++ Code to exclude integers
 
This code works right. What I am trying to do is add some more code that returns an INVALID message if someone doesn't start with 605, 606 or 607. What line of ...
[6 replies] Last: Every else must be associated with a preceeding if Sticking one i... (by Moschops)
by ty98
how to make a program repet
 
i need to know how to mak a program repet unlimited. do you have eny ideas?
[5 replies] Last: If you're unable to remember what while and for do, I think you might... (by Athar)
by mobat
Ways to improve my code
 
Can you tell me ways to improve my code that I have written for my text based adventure game: http://pastie.org/private/xnnu992cwloaxkbhwwgitw
[4 replies] Last: I took your advice Zellinger about the while(response != "done") I do... (by mobat)
by onyx
me
 
what is the syntax for embedding graph on a c++ code?
[2 replies] Last: Adjacency list / matrix (by Bazzy)
Partial File Output?
 
I'm having some issues with the following code on a program assignment: const void expression::showInfix(ostream& cout) { cout << "Infix: " << ifix <...
[2 replies] Last: ifix is a member variable of the myExpression object's class. The pro... (by bardicer)
by ty98
how to use a dll file
 
i would like to know how to make a program use like a text from the dll file.
[no replies]
Need assistance writing a program
 
I am a beginner student in desperate need of help writing a program. Recently, we have learned about functions, loops and reading from data files. My assignment...
[no replies]
by firix
Checked_iter
 
Hi, I try configure Checked_iter but not complate. Could you be helpful me ? Could you be helpful me ? template<class Cont, class iter = typename Cont::ite...
[no replies]
make pressing a button choose a random thing out of a list.
 
So I want a if(choice == 4) to randomly pick something out of a list because I want to make a game where you press a button and it picks a random creature To ...
[1 reply] : [quote=mewditto]So I want a if(choice == 4) to randomly pick something... (by Athar)
output problem
 
My codes are okay so far. My problem is when I type my 1st file name it displays the data in the file as integer and display the standard deviation as intege...
[1 reply] : The solution is to cast the output as int. cout << (int) array <<"... (by methodos)
Largest Element in an Array.....
 
Hi I'm currently doing a group of exercises from a previous post from this forum. Pancake Glutton ---------------- Write a program that asks the user to...
[7 replies] Last: @crisit121 thanks a lot it worked really well (by ExponentialP)
by seerex
C++ and apples SDK?
 
Hi all As someone might know i am new to C++ :) i started about a week ago and so far i've only been writing some console applications as my book indicates t...
[10 replies] Last: Veltas, no need to defend here. I agree that games are largely event-b... (by Acr)
How to implement a class with private bidimensional array?
 
I have such a class, it has a private member :a 2-dimensional array, whose column and row are specified by users. So how to implement it? Does using " unsigned ...
[1 reply] : http://www.cplusplus.com/forum/articles/17108/ (by hamsterman)
Re-writing this IF statement
 
Hi all, In this code below I have IF statements (bear in mind this is for a battleships game). The bit in bold and the rest of the code I want to be separate, ...
[7 replies] Last: int PickedNumbersArrayPlayer ; should be int PickedNumbersArrayPlay... (by methodos)
by seerex
SFML?
 
Hi all, I just installed the SFML program on my computer, as i just started c++ programming and was redirected on this forum to use SFML instead of console a...
[12 replies] Last: Yes getting it set up is difficult for newbies. But once you get this... (by Disch)
by seerex
Evaluate my console RPG! :)
 
Hi all, i just wrote this RPG game test, it took me about 30 min or more :) I also have a little question - i have it all running in loops and if/else statem...
[9 replies] Last: Personally, I've found C++ classes to make my code easier to read, und... (by Acr)
Help with loop and if statement code
 
while (end=0) { if (a<=4) { a++; } if (here = 1) { a = 1; } if (here = 2) { a = 2; } if (here = 3) { a = 3; a = 4; a = 5; } ...
[4 replies] Last: Well, it does. Loops can be nested. (by Zeillinger)
April 2011 Pages: 1... 1314151617... 55
  Archived months: [mar2011] [may2011]

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