Forum: C++ Jun 1st, 2009 |
| Replies: 17 Views: 741 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: 4,401 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: 369 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: 315 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: 315 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: 345 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: 345 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: 345 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: 737 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: 578 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++ Dec 28th, 2008 |
| Replies: 9 Views: 477 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: 477 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: 477 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: 767 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: C++ Dec 10th, 2008 |
| Replies: 3 Views: 434 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: 769 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,561 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,561 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,561 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,561 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*/... |