Search Results

Showing results 1 to 40 of 202
Search took 0.02 seconds.
Search: Posts Made By: n.aggel
Forum: C++ Mar 28th, 2009
Replies: 9
Solved: Why use assert?
Views: 897
Posted By n.aggel
The cleanest and nicest explanation, one could hope for!
Forum: C++ Nov 21st, 2008
Replies: 5
Views: 2,087
Posted By n.aggel
Thanks for your answers vijayan,


nice explanation!

but:
>http://en.wikipedia.org/wiki/Duplex_(telecommunications)
Forum: C++ Nov 20th, 2008
Replies: 5
Views: 2,087
Posted By n.aggel
sorry i didn't express myself correctly.

University assignment dictates that we do a chat "system" with 2 udp connected peers. In this sense we can't have
a single server, but a lot of peers. So...
Forum: C++ Nov 16th, 2008
Replies: 5
Views: 2,087
Posted By n.aggel
Hi to everyone!
I want to create a simple chat application using udp sockets. I want to have 2 applications that will be able to talk to each other.In particular app1 will send msgs to p2 and p2...
Forum: C++ Jul 28th, 2008
Replies: 14
Views: 1,709
Posted By n.aggel
Hi, i don't have a compiler in front of me.... but the program is small and easy so here is something that should work.

main.cpp

#include <cstdlib>

// #include <iostream>
//don't include...
Forum: C++ Jul 21st, 2008
Replies: 8
Solved: Alignement
Views: 787
Posted By n.aggel
thanks for your help... everything makes much more sense now. the 7 requirements that vijayan posted made everything clear. There are some things that i don't quite get in the last post,
like:...
Forum: C++ Jul 17th, 2008
Replies: 8
Solved: Alignement
Views: 787
Posted By n.aggel
Thank you all for your answers.


Yes.



I can't understand why pad the structure in the end. Ok if we want an array of align1 elements *then* we have to pad the end. But if don't want an...
Forum: C++ Jul 16th, 2008
Replies: 8
Solved: Alignement
Views: 787
Posted By n.aggel
Hi guys, i have one question regarding alignment. Assume that you have the following struct:


struct align1
{
double a;
char b;
int c;
short d;
};
Forum: C++ Jul 13th, 2008
Replies: 2
Views: 470
Posted By n.aggel
thanks vijayan for your assistance!
sorry for asking the RTFM kind of question...:(
Forum: C++ Jul 10th, 2008
Replies: 2
Views: 470
Posted By n.aggel
hi,

i have the following structure in the "simple application":

application_folder
|
|--makefile
|
+-headers
| |
Forum: C++ Jul 10th, 2008
Replies: 4
Views: 1,315
Posted By n.aggel
Narue could you elaborate more on this... It seems like an interesting subject! Being ignorant in the beggining i would agree ivailosp , but you seem to have a point.

Also to limit the scope of...
Forum: C++ May 18th, 2008
Replies: 6
Views: 600
Posted By n.aggel
just amazing.... {i had no intention of spamming , but this code is awesome...}
Forum: C May 18th, 2008
Replies: 8
Views: 1,601
Posted By n.aggel
Sorry for the double post, it was an accident.
Forum: C May 18th, 2008
Replies: 8
Views: 1,601
Posted By n.aggel
thanks vijayan121, this solved my problem.

Duoas, i wanted to swap the arrays inside the function...

-nicolas
Forum: C May 16th, 2008
Replies: 8
Views: 1,601
Posted By n.aggel
nop man this won't work.... because i am asking about variable lenght arrays....

check this out::

http://www.ddj.com/cpp/184401444
Forum: C May 16th, 2008
Replies: 8
Views: 1,601
Posted By n.aggel
the way i think it, i try to avoid copying anything than 2 pointers... maybe the thread title is a bit misleading

maybe a moderator could change to something like "swap the pointers to 2 arrays"...
Forum: C May 16th, 2008
Replies: 8
Views: 1,601
Posted By n.aggel
hi guys, it's been a while since i used c for anything so here goes a question tha may seem silly.


I have 2 variable length arrays....



int main()
{
int n = 5;
Forum: C++ May 15th, 2008
Replies: 6
Solved: Threads!
Views: 835
Posted By n.aggel
Thanks for the links!
Forum: C++ May 14th, 2008
Replies: 6
Solved: Threads!
Views: 835
Posted By n.aggel
thank you all, for your answers!

from this link.... http://www.ddj.com/cpp/184401518 is also helpful...

this phrase states my problem:



is there any tutorial ,{or} book for this?
[maybe...
Forum: C++ May 12th, 2008
Replies: 6
Solved: Threads!
Views: 835
Posted By n.aggel
hi to everyone,

In this semester we are having a class concerning High Performace computing / Parallel processing...

In short i have the following questions:

--- We are using pthreads and C....
Forum: C++ Feb 12th, 2008
Replies: 2
Views: 775
Posted By n.aggel
i don't think that gui frameworks are the best way for a beginner to start....You could try QT{its portable and for non commercial use it is free...}
Forum: C Jan 5th, 2008
Replies: 5
Views: 860
Posted By n.aggel
it seems that this
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
error appears when in the declaration of a functions you miss a ; in the end...
Forum: C Jan 1st, 2008
Replies: 5
Views: 860
Posted By n.aggel
searching a bit i found this::

/*
* C99
* 6.5.3.4.2
* The sizeof operator yields the size (in bytes) of its operand,
* which may be an expression or the parenthesized name
* of a...
Forum: C Jan 1st, 2008
Replies: 5
Views: 860
Posted By n.aggel
THANK YOU duoas... i 've been looking this code for one hour before i post here trying to find the error.... can i ask something though:

why sizeof nameval_t was wrong?
Forum: C Jan 1st, 2008
Replies: 5
Views: 860
Posted By n.aggel
I wish a happy 2008 to everyone on this forum.
I just obtained the practise of programming{by the way it seems like a great book...}
and i have the following code for linked list:


#include...
Forum: C Jan 1st, 2008
Replies: 10
Views: 2,701
Posted By n.aggel
Well....YES...it's stupid i know, but that's how it works....and they are very strict about that.
THANX for your help people...appriciate it....will try to implement some of the things you told...
Forum: C Dec 26th, 2007
Replies: 7
Solved: syntax question
Views: 1,156
Posted By n.aggel
you are right... the book mentions this trick when it talks about process implementation....



-nicolas

thank you all for your help!!
Forum: C++ Dec 25th, 2007
Replies: 4
Views: 585
Posted By n.aggel
421 lines of code without a comment.... i think that self explaining code is about a dozen of lines.. not 421 !!! So you are convinced that if you like these 421 lines after a year or so you will...
Forum: C++ Dec 25th, 2007
Replies: 4
Views: 852
Posted By n.aggel
hi rizoshar,

-first of all try to use code tags and indent your code to make it more readable....
read here (http://www.daniweb.com/forums/announcement8-3.html) to learn how to use code tags

-...
Forum: C Dec 24th, 2007
Replies: 7
Solved: syntax question
Views: 1,156
Posted By n.aggel
can you elaborate a bit more, because i still can't quite get it....



shouldn't then be written like this
int (*call_vec[])(void)

thank you both for your answers!

-nicolas
Forum: C Dec 24th, 2007
Replies: 7
Solved: syntax question
Views: 1,156
Posted By n.aggel
hi,

i am reading the book "Operating Systems Design and Implementation 3rd edition" which analyzes the minix source code... in the part of filesystems we see this code

PUBLIC _PROTOTYPE (int...
Forum: C Dec 24th, 2007
Replies: 7
Views: 1,768
Posted By n.aggel
thank you sarehu your answered covered me... if you know why is it necessary to make this #define _GNU_SOURCE thing, i haven't seen this mechanism been used in std library functions before...


...
Forum: C Dec 23rd, 2007
Replies: 7
Views: 1,768
Posted By n.aggel
hi guys,

i have the following code:

main.c

#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <limits.h> //defines PATH_MAX
Forum: C++ Dec 23rd, 2007
Replies: 18
Solved: beginners
Views: 3,672
Posted By n.aggel
as Comrade Ogilvy said :: int main(void) is the correct entry point. I don't know the ide you are using but from the output you posted it seems that you have 2 object files {firstprogram.o and...
Forum: C++ Dec 23rd, 2007
Replies: 12
Solved: Drawing Program
Views: 1,391
Posted By n.aggel
to rephrase what lerner already said{and add a little sugar!} if you want to output to screen {a line, a dot or whatever} you must use directly the OS's api or some framework thats supports graphics...
Forum: C++ Dec 23rd, 2007
Replies: 3
Views: 1,022
Posted By n.aggel
although i cannot help you with what you want, maybe you would get more help if you made this post in a more security oriented forum {i can't suggest one, but there must be alot of them}...
Forum: C++ Dec 23rd, 2007
Replies: 4
Views: 1,429
Posted By n.aggel
if you want just the code-wrap future you can use any good editor availible.... i.e. notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm), textpad (http://www.textpad.com/) and many others.......
Forum: C++ Dec 22nd, 2007
Replies: 11
Views: 3,004
Posted By n.aggel
Sorry to resurect an old post... but i haven't read it until now...

i disagree with this statement:



someone could categorize programmers in the following categories:
cat1: Those who want...
Forum: C Dec 17th, 2007
Replies: 4
Views: 722
Posted By n.aggel
i solved the problem after all.... it seems that the options std=c99 created the problem with the inclusions{unfortunately i don't know why} plus me forgeting to include list.o ... now everything...
Forum: C Dec 17th, 2007
Replies: 4
Views: 722
Posted By n.aggel
basically i zipped it with fedora...
Showing results 1 to 40 of 202

 


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

©2003 - 2009 DaniWeb® LLC