User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 455,996 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,817 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 199
Search took 0.02 seconds.
Posts Made By: n.aggel
Forum: C++ 1 Day Ago
Replies: 1
Views: 54
Posted By n.aggel
UDP-Sockets chat application question

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 will...
Forum: C++ Jul 28th, 2008
Replies: 14
Views: 736
Posted By n.aggel
Re: C++ Header Help

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 things...
Forum: C++ Jul 21st, 2008
Replies: 8
Views: 458
Posted By n.aggel
Re: Alignement

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...
Forum: C++ Jul 17th, 2008
Replies: 8
Views: 458
Posted By n.aggel
Re: Alignement

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 array why...
Forum: C++ Jul 16th, 2008
Replies: 8
Views: 458
Posted By n.aggel
Alignement

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: 222
Posted By n.aggel
Re: Make problem with implicit rule

thanks vijayan for your assistance!
sorry for asking the RTFM kind of question...:(
Forum: C++ Jul 10th, 2008
Replies: 2
Views: 222
Posted By n.aggel
Make problem with implicit rule

hi,

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

application_folder
|
|--makefile
|
+-headers
| |
Forum: C++ Jul 10th, 2008
Replies: 4
Views: 485
Posted By n.aggel
Re: Loop initialization question

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 the...
Forum: C++ May 18th, 2008
Replies: 6
Views: 358
Posted By n.aggel
Re: Is there a simple option?

just amazing.... {i had no intention of spamming , but this code is awesome...}
Forum: C May 18th, 2008
Replies: 8
Views: 575
Posted By n.aggel
Re: Swap an array...

Sorry for the double post, it was an accident.
Forum: C May 18th, 2008
Replies: 8
Views: 575
Posted By n.aggel
Re: Swap an array...

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: 575
Posted By n.aggel
Re: Swap an array...

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: 575
Posted By n.aggel
Re: Swap an array...

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" or...
Forum: C May 16th, 2008
Replies: 8
Views: 575
Posted By n.aggel
Swap an array...

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
Views: 509
Posted By n.aggel
Re: Threads!

Thanks for the links!
Forum: C++ May 14th, 2008
Replies: 6
Views: 509
Posted By n.aggel
Re: Threads!

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 the book...
Forum: C++ May 12th, 2008
Replies: 6
Views: 509
Posted By n.aggel
Threads!

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. I...
Forum: C++ Feb 12th, 2008
Replies: 2
Views: 337
Posted By n.aggel
Re: C++ GUI framework help??

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: 570
Posted By n.aggel
Re: linked list error

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: 570
Posted By n.aggel
Re: linked list error

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 type.
...
Forum: C Jan 1st, 2008
Replies: 5
Views: 570
Posted By n.aggel
Re: linked list error

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: 570
Posted By n.aggel
linked list error

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: 1,423
Posted By n.aggel
Re: Some help with input check....

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
Views: 682
Posted By n.aggel
Re: syntax question

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: 367
Posted By n.aggel
Re: Self documentation

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: 587
Posted By n.aggel
Re: newbie and i need some help

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
Views: 682
Posted By n.aggel
Re: syntax question

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
Views: 682
Posted By n.aggel
syntax question

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,088
Posted By n.aggel
Re: Unknown prototype ...

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,088
Posted By n.aggel
Unknown prototype ...

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
Views: 2,007
Posted By n.aggel
Re: beginners

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
Views: 973
Posted By n.aggel
Re: Drawing Program

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: 567
Posted By n.aggel
Re: Doing final year project based upon an intrusion detection system (IDS) - Need Help!

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: 947
Posted By n.aggel
Re: Visual C++ 08 Express compiling issues...

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: 2,192
Posted By n.aggel
Re: Help reading/writing to text files...

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 to...
Forum: C Dec 17th, 2007
Replies: 4
Views: 396
Posted By n.aggel
Re: makefile question

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: 396
Posted By n.aggel
Re: makefile question

basically i zipped it with fedora...
Forum: C Dec 17th, 2007
Replies: 4
Views: 396
Posted By n.aggel
makefile question

hi, i have the following program

see the attachment

when i try to compile through the command line {with the scipt compile} everything works fine...

when i try to use my makefile...i get tons of...
Forum: C++ Nov 21st, 2007
Replies: 5
Views: 553
Posted By n.aggel
Re: "breaking up" your application

thanks for all the details :) ... One last question if i have some globals {i.e. a file pointer} that they are used in main and in some of the functions, where is the right place to put them...Is it...
Forum: C++ Nov 20th, 2007
Replies: 5
Views: 553
Posted By n.aggel
Help Re: "breaking up" your application

thank you for your replies and for the book recommendations{because frankly i haven't bumped in a book that treats this subject}... the problem is that i am in greece so the books are a bit hard to...
Showing results 1 to 40 of 199

 
All times are GMT -4. The time now is 9:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC