Forum: C++ Jun 1st, 2009 |
| Replies: 17 Views: 662 If you want to multiply any number by 100
Try this :-
int result = 0;
int x;
cout << "Enter Any Number " << endl;
cin>>x;
for ( int i = 1 ; i <= (100 /2) ; i++)
{ |
Forum: C++ Jun 1st, 2009 |
| Replies: 5 Views: 656 Try using this routine to convert from cstring to std::string using stringstream
Here is the routine
#include <sstream>
#include <string>
using namespace std;
string convert(char... |
Forum: C++ Jun 1st, 2009 |
| Replies: 6 Views: 341 Make a for loop that starts from 12 to 1 (Decrementing here )
and then multiply 3 by the index and cout the result. |
Forum: C++ May 31st, 2009 |
| Replies: 4 Views: 296 you got several errors in your code .
1- in int faq_choice,faq_YN;
y did u make faq_YN integer it have to be char that is why the infinite loop occurs.
2- in your if statements u made && it... |
Forum: C++ May 31st, 2009 |
| Replies: 4 Views: 296 Its a braces problem check for unclosed braces in all of your program.
There is a missing brace in line of
just add '}' before this line.
it is for do while loop. |
Forum: C++ May 30th, 2009 |
| Replies: 7 Views: 308 ok the compiler's error is
DeleteACar' : is not a member of 'Vehicle'
and in your code i dont see any data or function named DeleteACar
so could u please tell check your code for DeleteACar.
... |
Forum: C++ May 30th, 2009 |
| Replies: 7 Views: 308 please could u tell me more about your problem do u want to solve the compiler's error or do u want to know how to configure a pure virtual function? |
Forum: C++ May 30th, 2009 |
| Replies: 7 Views: 308 in line 33 you should inherit from VectorClass to use the virtual method AddACar().
i just wanted to warn cuz the method AddACar() u used in main
isn't the virtual function that u declared in... |
Forum: C++ May 30th, 2009 |
| Replies: 5 Views: 630 I have an idea:-
1- make a structure with the following member.
struct Record{
char name [20];
};
this structure is for using fixed length record |
Forum: C++ May 30th, 2009 |
| Replies: 10 Views: 541 Don't forget to declare the array as float not int cuz it gonna receive the square roots of the integers which can be float numbers. |
Forum: C Feb 27th, 2009 |
| Replies: 4 Views: 558 Look abby2589 ,
I didn't read all your code but from the general idea of the code i assume that you want to know how to use the stack to check if the word is palindrome or not.
- After... |
Forum: C Feb 12th, 2009 |
| Replies: 9 Views: 602 I don't think so, since the Mine Sweeper will use two Dimensional array as a Data Structure to assign a random number of mines in random cells.
But i think tress can be used implicitly by... |
Forum: C Feb 10th, 2009 |
| Replies: 9 Views: 602 There also an important use of Trees in gaming Applications like in a Football game the movement of a Player is actually implemented using Trees by moving in huge number of nodes beside each other... |
Forum: C Feb 8th, 2009 |
| Replies: 3 Views: 247 You can Make a Structure for these four identifiers.
struct AnyNameYouLike{
char* type_of_food;
char* Name;
char* Address;
unsigned int Average_Cost;
}; |
Forum: C Feb 3rd, 2009 |
| Replies: 8 Views: 13,842 Or u could use a Linked List to put the first string in a List and put the second string in another list .
Then u can link the two lists together to get A concatenated string :-O . |
Forum: Monitors, Displays and Video Cards Jan 30th, 2009 |
| Replies: 3 Views: 1,651 The Graphics that support the SLI technology doesn't mean that it need two Slots to Operate .
Actually the SLI technology based in Operating two graphics that supports SLI to have dual graphics... |
Forum: C Jan 24th, 2009 |
| Replies: 3 Views: 1,783 Could you tell us what include directives you used? |
Forum: C++ Dec 28th, 2008 |
| Replies: 9 Views: 433 Excuse me, But could you plz explain your problem more efficiently.
cuz i didn't get your point |
Forum: C++ Dec 28th, 2008 |
| Replies: 9 Views: 433 Mr ddanbe,
It is only matter of style not more and this is a small program so it doesn't matter if i added another variable, ofcourse u right and thanks for this advice. |
Forum: C++ Dec 28th, 2008 |
| Replies: 9 Views: 433 Your Binary Search Function's logic is right but You have some simple errors :-
Firstly in the function since u intending using Recursion then u have to return the value that is resulted from the... |
Forum: C++ Dec 27th, 2008 |
| Replies: 3 Views: 685 Mr.web_master,
I've searched for a function similar to gotoxy() in ncurses .
I think i found this function:
1- mvaddch(row,col,ch);
Prints the ch in the given row and column (similar to... |
Forum: Geeks' Lounge Dec 24th, 2008 |
| Replies: 59 Views: 17,101 Oh Video Games what can i say about Video Games.
The Problem is that Video Games didn't make me live My Childhood Properly like other Normal Children who spent their Childhood in Gardens .
The... |
Forum: IT Professionals' Lounge Dec 24th, 2008 |
| Replies: 107 Views: 15,765 Egypt near the Suez Canal |
Forum: IT Professionals' Lounge Dec 23rd, 2008 |
| Replies: 8 Views: 1,362 Well , I wanted to say that Although i'm not from U.S.A but i think that Obama will solve all your Problems and achieve every citizen the American Dream. |
Forum: C++ Dec 10th, 2008 |
| Replies: 3 Views: 406 if there is an active internet connection u can use ubuntu live cd and download the GTK+ Libraries and begin programming with GTK+. |
Forum: C++ Dec 5th, 2008 |
| Replies: 11 Views: 733 You can traverse through the string using a pointer ofcourse :-
-if u find any open braces (and i mean OPEN ' (,{,[ ') Push it to the stack.
-While u still traversing the expression if u find... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 8 Views: 1,459 This is the modified function
template <class type> void append(node<type>** l,const type& elem)
{
if(*l==NULL)
insert_first(&*l,elem);
else
{
node<type>*temp=*l;
node<type> *Q=new... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 8 Views: 1,459 Mr ArkM i'm very thankful for your interaction with me .
Could u plz explain your purpose cuz i tried it and it went to infinite loop while displaying random numbers (or maybe the addresses) and... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 8 Views: 1,459 Mr ArkM I didn't intend using classes but i was intending to try to use the (Generic Functions ) Definition not a Generic Class or something like that and in addition to that i wrote this code as an... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 8 Views: 1,459 Generic Double Linked List
/* These are generic Functions for a Generic List
* Note:-Only Functions not including a Menu and an Interface
* You could use these Functions for your own Benefit*/... |
Forum: IT Professionals' Lounge Nov 7th, 2008 |
| Replies: 3 Views: 3,215 Well jaimil27
Thanks for your contribution but i don't think the solution you suggested will solve my issue.
Because if its the modem's problem then why the internet... |
Forum: IT Professionals' Lounge Nov 7th, 2008 |
| Replies: 3 Views: 3,215 Guys anybody faced this problem in Ubuntu 8.10 where when the cable is plugged in the PC it doesn't read any connection automatically like its predecessors.
If anybody faced this problem plz can... |