Beginners - September 2012 (Page 44)

-lR and -p Unix commands
 
Where can I read about these? I have seen them used in CLI tutorials without explanation. Their function is somewhat derivable from context, but I would like do...
[2 replies] Last: They are not commands but flags. (by ne555)
Please help me !!!
 
double
[6 replies] Last: i know that but becouse i haven't practice it to much i'm doing mistak... (by beginner1432)
explain please!
 
Can someone explain what this question means? Write a program that reads a number of seconds between 0 and 18,000 (5 Hours) and displays the hours, minutes a...
[3 replies] Last: thank you i just didnt read the question carefully and I was thinking ... (by rduckett91)
by lmsmi1
Console Applications
 
I created a project in batch called BitCrypt that ciphered text with multiple caesar, reversal, subtitution, and other ciphers. I'm trying to figure out how to ...
[14 replies] Last: So I'm making a game. Is there a way to move the character on the scre... (by lmsmi1)
Alarm Clock Program
 
Hello everyone. I tried to solve this problem in my last post but no luck and simplified the coding so that I could find the problem yet it is still not working...
[4 replies] Last: You could try strptime http://linux.die.net/man/3/strptime to conve... (by mik2718)
Game Programming | What library should I use? (1,2)
 
Aloha everybody. I'm getting into game programming, I would like to create a game like trivial pursuit (in 2D) and then start working on a multiplayer top-do...
[20 replies] Last: @everyone talking about dev-c++ About time someone did! (by kaseron)
Matrix function pointer problem.
 
I've got this code... #define n_event 2 #define n_state 3 struct event { ... //Some info here. not really matter. }; typedef void(*p_fun_v)(event*); ...
[3 replies] Last: I said already that you need no a pointer to the matrix. typedef void... (by vlad from moscow)
by xzbit
if statement
 
int n; if (n != 1, 2,10) { cout << "Hello World"; } the output should be "hello world" if "n" is "not equal" to 1 or 2 or 10. that...
[2 replies] Last: yes..thank you (by xzbit)
10 digit multiplication
 
here i want to perform two 10 digit multiplication.I tried but not able to get desired result so any kind of help will be saluted.
[4 replies] Last: Use a bigNum library written in C. (by Moschops)
when to use copy constructors
 
Do we need to write a copy constructor if my class has just one char pointer variable? class Test { public: char *a; Test(void){ } };
[9 replies] Last: YES you are right I will edit my previous post . (by gtkano)
Updating C++ Compiler in Mac
 
Hello, I recently installed Xcode, and with it came gcc 4.2.1, I want to update it to the latest, which I think is 4.7.0, is it the same as on a linux machine, ...
[2 replies] Last: Ohh, Okay Thanks JLBorges (by aizen92)
Problem with derived classes
 
Hi all, I have a base class "Base" and a derived class from the Base called "Derived". Can I find out how come the Derived class can't be properly 'connec...
[3 replies] Last: The problem is you're including base.cpp multiple times. Once in ma... (by AbstractionAnon)
Multiply integer within string array
 
Hey everyone. I have been trying to solve this problem but can't find the solutions online. This is just a massively simplified version of the program where the...
[9 replies] Last: @mikeecb it works because u subtract ASCII code for '0' (48) from th... (by gtkano)
can i get a solution for this??
 
creating a class with function to get data and display the same. n then creating the array for the same object of the class eg( if my class is person and p is t...
[7 replies] Last: thanxx guys :D n specially aceix (by aravindk)
by xzbit
need to write a specified amount of digit
 
hi, im trying to write an output of 10 ones // or more 1111111111 i tried for (int i = 1;;)//maybe something to put here ?? cout << i; obvi...
[3 replies] Last: Another way std::cout << std::string( 10, '1' ) << std::endl; ... (by vlad from moscow)
Search in vector
 
I want to add a search function to search my vector for a text string. I tried this: #include <vector> #include <algorithm> .... vector<Bar>Fooba...
[8 replies] Last: Please try to rewrite the code as i showed you. Why did you place a s... (by vlad from moscow)
l33t program not working
 
Hi, how do you convert a sentence such as: "I can has Cheezeburger!", to leet. you have to change the sentence to uppercase first (not sure how thats done) th...
[5 replies] Last: Change if statement to this... if(converter == 'I') leet = '1';... (by MrHutch)
Invalid Date
 
Trying to get the program identify an invalid date. Problems encountered: Program does not recognize any invalid date. Program does not recognize when ...
[2 replies] Last: Hi, this should work :-) #include <iostream> // function prototype... (by closed account j3A5Djzh)
Error in structure and string program
 
I don't know why both of the below program gives error? int main() { typedef union { int a; char b; float c; }Un; ...
[2 replies] Last: Here is correct program 1: #include <stdio.h> // printf int main(vo... (by closed account j3A5Djzh)
Can someone please explain this program
 
I found this from a ebook. cannot take an idea whats it. #include <iostream> using namespace std; int main() { float goal ; goal =0.9; goal =0.75...
[6 replies] Last: I think now I got it. Thanks alot (by prabhanuka)
September 2012 Pages: 1... 4243444546... 62
  Archived months: [aug2012] [oct2012]

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