Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: atman ; Forum: C++ and child forums
Forum: C++ May 24th, 2009
Replies: 9
Views: 322
Posted By atman
sorry was in a rush and forgot to ask., The question is how to rewrite the function w/o using if statement.
Any help would be appreciated
Forum: C++ May 23rd, 2009
Replies: 9
Views: 322
Posted By atman
Hello.,
I'm very new in C++, and I have a task to solve.
I have a function:


void cio_display(const char *str, int row, int col, int len){
int i;
cio_move(row, col);
if(len<=0) {
...
Forum: C++ May 23rd, 2009
Replies: 2
Views: 180
Posted By atman
Hello!
I'm new in C++, and I have a basic question:

When I have a function:


void foo(str* s){
char* p;
p = new char[strlen(s)];
strcpy(p, s);
Forum: C++ Feb 21st, 2009
Replies: 6
Views: 635
Posted By atman
Hello guys,
I'm very green in c++ and just started to understand classes and objects. I'm reading on the web about this pointer, but having difficulties understanding how it works exactly, could...
Forum: C++ Feb 10th, 2009
Replies: 1
Views: 173
Posted By atman
#include<stdio.h>

class q1 {
int id;
public:

q1() { id = 1; printf("mkdef: %d\n", id); }
q1(int start) { id = start + 1;
printf("mknew: %d\n", id); }
~q1() { printf("rm: %d\n", id); }
Forum: C++ Jan 24th, 2009
Replies: 5
Views: 319
Posted By atman
Thank you so much for fast and detailed responce., so after statement p=a+i, does it mean that p equals 2 in the first pass? and does it mean that with statement x=*p means that x=2? i'm abit...
Forum: C++ Jan 24th, 2009
Replies: 5
Views: 319
Posted By atman
when in the function p=a+i; does it mean p=0+0? since a points to the 1st element which is a 0 and i is also 0 in a first pass of the loop??? or it would be a=0 + 2(since its the first element's...
Forum: C++ Jan 24th, 2009
Replies: 5
Views: 319
Posted By atman
Hello.,
Im very new to C++ but im trying to resolve a fragment of the following code:


#include <iostream>
using namespace std;
const int NO_STEPS = 4;

void s(int* a, int i);
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC