Forum: C++ Feb 17th, 2007 |
| Replies: 9 Views: 1,985 wow, thanks!!
y didnt i think of that!
hehe........thanks! |
Forum: C++ Feb 17th, 2007 |
| Replies: 9 Views: 1,985 then y is it that when i display *p for the 1st time in the main AFTER the function was called, it still manages to display the value or 3?
it only displays rubbish after i try to change the... |
Forum: C++ Feb 16th, 2007 |
| Replies: 9 Views: 1,985 given this simple example:
void changep(int*&p);
int main()
{
int*p;
int x;
changep (p); |
Forum: C++ Feb 15th, 2007 |
| Replies: 9 Views: 1,985 if i declare a pointer in the main function, pass it via a function as a parameter, point it to a variable that only exists in the called function, will i be able to retrieve the vlaue of the... |
Forum: C++ Feb 15th, 2007 |
| Replies: 9 Views: 1,985 Hi guys
need a little help for my homework, any help is greatly appreciated.
:cheesy:
Qn 1. pointers
i have a problem with passing pointers to functions
code is as follows:
//function... |
Forum: C++ Nov 22nd, 2006 |
| Replies: 6 Views: 6,987 thanks for the help!!!
i got it!!! |
Forum: C++ Nov 18th, 2006 |
| Replies: 6 Views: 6,987 Hi ppl!
can anyone tell me how to capture system date and o/p it later in a prog??
what function do i use??
thanks in advance! appreciate any help rendered. :cheesy: |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 lol......
if (inner%2)
print second_char
else
print first_char
hope its correct? ;)
lol |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 wow....thanks....
would never have though of this........
need lots more practice......lol
thanks..really appreciate it :) |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 okay...here goes:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n,count; |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 The codefor a previous qn:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n,count; |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 yup its correct....coz the previous few qns in my assignment are quite similar...just that the diplays consists of only *
just to correct my first qn, the output should be:
*.*
.*
*
... |
Forum: C++ Oct 23rd, 2006 |
| Replies: 13 Views: 1,887 Write a program that accepts a number and produces a pattern as shown in the
following sample outputs.
Line = 3
*.* .* *
Line = 8
.*.*.*.*
*.*.*.*
.*.*.* |