Forum: C++ Mar 28th, 2009 |
| Replies: 9 Views: 921 The cleanest and nicest explanation, one could hope for! |
Forum: C++ Nov 21st, 2008 |
| Replies: 5 Views: 2,156 Thanks for your answers vijayan,
nice explanation!
but:
>http://en.wikipedia.org/wiki/Duplex_(telecommunications) |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 2,156 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,156 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,720 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 Views: 791 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 Views: 791 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 Views: 791 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: 472 thanks vijayan for your assistance!
sorry for asking the RTFM kind of question...:( |
Forum: C++ Jul 10th, 2008 |
| Replies: 2 Views: 472 hi,
i have the following structure in the "simple application":
application_folder
|
|--makefile
|
+-headers
| | |
Forum: C++ Jul 10th, 2008 |
| Replies: 4 Views: 1,345 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: 604 just amazing.... {i had no intention of spamming , but this code is awesome...} |
Forum: C++ May 15th, 2008 |
| Replies: 6 Views: 842 |
Forum: C++ May 14th, 2008 |
| Replies: 6 Views: 842 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 Views: 842 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: 790 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++ Dec 25th, 2007 |
| Replies: 4 Views: 590 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: 856 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 23rd, 2007 |
| Replies: 18 Views: 3,695 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: 1,395 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,039 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,439 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,018 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++ Nov 21st, 2007 |
| Replies: 5 Views: 787 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: 787 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... |
Forum: C++ Nov 20th, 2007 |
| Replies: 5 Views: 787 hi lets say you have a big application and you want to break it up to many files... The ideal would be if you can have the application in one .c {i.e main.c} file your types and includes in another... |
Forum: C++ Nov 6th, 2007 |
| Replies: 24 Views: 1,751 please use code tags or other people won't be able to help you....
here is your code
#include <iostream>
#include <conio.h>
#include <cstdlib>
#include <cmath>
#include <cstdio> |
Forum: C++ Nov 5th, 2007 |
| Replies: 3 Views: 821 i think this topic is called interprocess communication {i am just starting learning about it..} |
Forum: C++ Nov 4th, 2007 |
| Replies: 9 Views: 1,695 truth be told, i have never heard about trampolines before your post{my fault}... still everything you wrote is very interesting.
thanks vijayan!
PS::
for other newbies{like me} :: here is a... |
Forum: C++ Nov 3rd, 2007 |
| Replies: 9 Views: 1,695 thank you salem! your answer was very helpful. |
Forum: C++ Nov 3rd, 2007 |
| Replies: 9 Views: 1,695 thank you all for your answers:
with the example i stated above gcc didn't do a better job {if i understand correctly the output}
.file "testGCC.c"
.text
.globl main
.type main, @function... |
Forum: C++ Nov 3rd, 2007 |
| Replies: 9 Views: 1,695 Hi,
if we had the following program::
int main()
{
int a, d;
int b=12;
int c=13; |
Forum: C++ Oct 27th, 2007 |
| Replies: 4 Views: 583 if you don't post your code, we can't really help you... |
Forum: C++ Oct 9th, 2007 |
| Replies: 4 Views: 556 if this solved your question, why don't you mark the thread as solved... |
Forum: C++ Oct 9th, 2007 |
| Replies: 9 Views: 17,882 for anyone who doesn't know what lint is{i didn't!} read this (http://en.wikipedia.org/wiki/Lint_programming_tool).
PS:: although i am not an experienced programmer, for purely aesthetically... |
Forum: C++ Oct 9th, 2007 |
| Replies: 3 Views: 1,073 thanks for your answers! vijayan your example example did clarify ... |
Forum: C++ Oct 7th, 2007 |
| Replies: 3 Views: 1,073 hi, i am reading the book "The c++ standard library -- a tutorial and reference"{N.M.Josuttis}
in the beggining of the 6th chapter it says{in regard to container initialization}::
... |
Forum: C++ Oct 7th, 2007 |
| Replies: 12 Views: 1,084 PuTTY is not a compiler, it is a free software SSH, Telnet, rlogin, and raw TCP client, you can read more here (http://en.wikipedia.org/wiki/PuTTY)... You can donwload a windows version here... |
Forum: C++ Oct 6th, 2007 |
| Replies: 5 Views: 1,387 thank you all for your help...
vijayan was right... you see in this program i tested both the const_iterator and the iterator... When i copied the for-loop {from the part where i was testing the... |
Forum: C++ Oct 5th, 2007 |
| Replies: 3 Views: 4,988 please use code tags...so that your code is more readable...this way more people can help you....
for c++ code, type [ code=c++]//your code goes here[/code]
e.g.
#include<stdio.h>
void... |