~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

*sigh*
I can only get to see it.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I really appreciate your kind gesture. If you have any tutorials which you think would help out the newbies you can submit them here.

Welcome again.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If the code is small enough you can try to post it here and pointing out the line on which error occurs or post the sample function is code is too big.

Also if you don't know, there is a datatype which is used in place of int in the OpenGL functions which accept int and it is GLint or something like that.
Try it and see if it works and if dont post your code snippet.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there Rob welcome to Daniweb.

Microsoft Certification...hmmm hope you render help to some of the newbies out here who are looking for professional help :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello friend, welcome to Daniweb.

Looks like you are interested in all the J's -- Java, Jazz...

:D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there buddy, good to have you here.

Maybe you should just get the other members of Daniweb involved in your chess maniacity. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The only ones I know which provide good space, support for PHP and MySQL are :

http://www.122mb.com/
http://www.275mb.com/

Hope they helped, bye.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello.

Err...I really don't get it, what exactly has changed. Does the new feature allow me to customize the way Daniweb looks in my browser ? What exactly is collapsable here ?

Thank you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

beat me -> blue and black

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

really was a

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

plants -> nuclear power plant.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello.

You can also read the description of "Advanced C".

From what I have heard its a good book for all topics. Worth aleast looking at.

Thank you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Are you saying that the swap( ) function in your code is recursive ?

Because the only function I see in that post is the bubble sort and swap( ) .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

JRM your solution won't work, bubble sort uses two nested loops not one.

And on top of that you cripple your method by using strncmp( ) instead of just strcmp( ). Why limit the comparision to 3 characters ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

A virtual family ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe all you guys should just pool your requests together and submit it to Miss Dani. Better create a new thread in which anyone who feels that new categories should be introduced will cast his vote.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

*sigh* Maybe I should just report bad post myself to avoid any further inconviniences to other members.

But still I am happy that I am not like the rest of people, I am special when it comes to thinking out of the box.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes, atleast networking tutorials have a place in Daniweb.

If you have really good material for others then maybe you should talk with Miss Dani about this and after evaluating your matter would make a new catergory for you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Which code ? Can you post it here if it is relevant.

BTW if you have access to MS Visual Studio and if your code doesn't use Borland specific drawing functions, then I would recommend you use Visual Studio.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

This is Geek's lounge and I am not offending anyone, nor using racist comments or anything else.

And if you would care to look, the posts before me were also offtopic.

If the moderators of this forum think this is not appropriate they can delete my post. If you really dislike it that much you can just report bad post.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Though it would have been simple if they had something like:

// more simple to understand and no need of keeping in mind the 
// ASCII equivalent of '0'
temp[k++] = remain + '0' ;
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Be more specific. What kind of 3d stuff are you implying here. 3d modelling softwares like Max, Maya or simulations or 3D games ?

IMO C++ is by far the best language you can have for such things, though others like Python ( [search]Blender Modelling tool[/search] )and Java are catching up.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

new home -> lot of guests

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

evil schemes up

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

On what basis do you make this judgement?

Personal experience and from what I have seen. But then again personal opinion, maybe a lot of people dont know where the world is heading and what it has become.

If you're an atheist, do you really believe that you "evolved from a rock"?

Imagine yourself as being one of those who were affected by Sudan famine and you would know. If you think "why should I think of all these stupid things" then its okay with me what you all think. If you that much believe in GOD can you please ask him to explain to me why he brings in this world all the those humans if he can't take care of them.

To understand the pain you have to be a part of it or atleast feel it. Untill then your comments would only be..well comments.

Untrue.

I don't agree...

In My Opinion: In the end, that signature, in part, will be only a shattered opinion.

Opinions can be shattered, what we feel and what we have gone through are not.

In the end I would only say in general :
Frogs of the well don't know what the world outside holds.

Looks like my only problem is that I want to see everyone happy and getting the same basic necessities we all have. Maybe I think a lot and what I see pains me a lot. Maybe I am not satisfied that I …

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Damn..so less votes for 0 ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.

I am afraid, no. It really makes me sad that the level of technical education in programming and software developement is very less or stunted except for a handful of universities and which require exceptionally good grades.

All the professional developers here have either learnt programming from good text books on their own or those who visit forums (like me) or both.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Somehow, I'm just not seeing what it is that is wrong with the code Ive written with the help of the pseudo code from Lerner.

Okay. Here this goes.

What Mr. Lerner tried to explain is that if you start from the start of the array, you would have a hard time keeping track of duplicates.

Eg. one, two, one, two, three

If you begin at the start of the array you have no way of knowing that the current word under consideration would be repeated or not i.e. if we consider the first word "one" we have no way of knowing that "one" would occur again or not.

The only logical thing to beat this problem would be to start from the end of the array, eg. "three", look up for it in the whole array, and see if it occurs anywhere in the whole array. If it does, don't print "three" because we know for sure that we will encounter "three" again definately.

A sample run for input "one, two, one, two, three"

Current Word: three
Searching upwards for "three"...not found
Print "three"

Current word: two
Searching upwards for "two"...found
Dont print "two"

Current word: one
Searching upwards for "one"...found
Dont print "one"

Current word: two
Searching upwards for "two"...not found
Print "two"

Current word: one
Searching upwards for "one"...not found
Print "one"

I won't let you give up so easily ;)

…

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Glad I could help :D
.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Okay I dont know why but the above Ad sounds fishy...

I serioulsy recommend you to take the opinion of your friends or any other people out there becuase I dont know the game development scenario in Ireland. But one thing is for sure, game development is not without deadline and I say, what the hell, not software project is without deadline.

And if you can, go out to the location the ad wants you to come and check out what they have to say. There is no harm in trying it out, is it ?;)

Anyways more importantly, how well versed are you in C++ because that is what matters in the end. Are you comfortable with STL, done any C++ project ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Ok I'm getting a very negative vibe on the whole game programming,but i do really enjoy programming(with java at least).

Aside from the games industry what would be a nice programming job java can be applied to?

You should not consider this as a negative vibe, you should just treat our replies as information added to your database. Consult some more people probably some of your professional friends or those who are really into this kind of thing and ask them how its really in the gaming industry.

But since you have got your determination wavered so early......

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe even I should attempt and post the solution to Professor WaltP.

Yay atlast we get a qualified teacher who balks at void main ( ) :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Still a bad idea though.

Agreed -- it turns out to be confusing.

You mean you are learning by making a lot of mistakes.

Yes people learn from their mistakes. Only when you experiment, make mistakes will you know that what not to do.

But maybe you never made mistake, so its all peace. :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But beware that you're trying to enter a marketplace that's not only extremely competitive (every kid seems to want to become a game programmer) but highly exhausting.
People have (and do) died at their workstations, literally worked to death by impossible deadlines and 20+ hour workdays combined with employment systems that make it professional death to take even a day off to go to the doctor or catch up on sleep.

Yes, its sad but true. Something to this very effect is quoted by the author of the book "3d game engine programming" in his book.

Unless you are a complete programming freak who thinks of nothing else than programming this task can turn out to be very daunting.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

For now it is :) Remember she's got the keys to the serverroom :p

Drats..I overlooked that one. It will only take her a second to make the necessary changes. So naive of me. :P

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

*sigh* We really will miss you JoBe, though I wish you hadn't given up.

Your friend always,
~s.o.s~

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Oki,i dind't really understand what u are trying to do

He wanted to know whether it was necessary to pass the size of array to the function which calculates the maximum of all the elements of the array.

Instead i use sizeof like ~s.o.s~ suggested

I didn't suggest him to use sizeof since it wouldnt work.;)

The program compiles succesfully , but the output is wrong
If some can take a look at and see what's wrong , pls .

Simple....arrays in C and C++ are passed by reference, meaning instead of passing the entire array like normal variables, only the pointer to the array is passed. Hence when you try to use sizeof operator inside the function, you end up using sizeof for the pointer, which yields the pointer size on that machine.

In short, you can't as such find the size of the array once it has been passed to the function.

Here is a sample run which I got after putting some output stmts to make matter more clear:

Array size :4
p[0]= 1
p[1]= 2
p[2]= 3
p[3]= 4
Sizeof vector = 4 and sizeof vector[0] is 4
The maximum value is : 1

Hope you catch the drift...


I'm really curios what the bug is

I like that kind of approach....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Offtopic :
Thanks for the support,i heared about fgets(),but our teachers at the university want us to use the gets() function and if u don't do it their way,than is the highway

No need to as such go against them but a little extra knowledge is always good. Just keep in mind never to use gets( ) unless you are doing a University assignment since then it would really be the highway for you....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

and why are you using a 20 year old compiler?

Pssst..dont let Mr. WaltP hear about that....:cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

ha ha, gets(string);
Newbie.

Ah... looks like it missed my eye.

@Eko:
Hey there buddy, normally its a bad programming practice to use the function gets( ) since it does no bound checking i.e. even if you declare your string to be consisting of 10 characters, nothing prevents you from entring 100 characters. This will result in buffer overflow and writign to memory that doenst belong to you which in the end leads to corruption.

You are better off using fgets( ).

char buffer[BUFSIZ] = { '\0' } ; // set character array to all null chars
printf( "Enter string: " ) ;
fgets( buffer, BUFSIZ, stdin ) ;  //

[search]fgets( )[/search]
The above is a much safer way of accpeting strings or a matter of fact any input from the user.

Dont forget to remove the newline character which is present at the string end.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I don't think you can do it without passing the size of the array to the function since once inside the function you can't use the sizeof operator on the passed arrray since it would only yield the size of pointer.

Every sorting or searching routine out there requires you to pass the length of the array to it.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I've tried everything, from acupuncture through to meditation, hypnosis and various Chinese herbal remedies. I have also been visiting the pain clinic at the hospital for 6 years, and have been on all sorts of medications. Some work better than others, the cortico-steroid injections into the cervical spinal gap, done as day surgery in theatre, worked well - but I had to have them every 8 weeks and the side effects build over time so they had to stop. Opiates work well, but again side effects prevent long term use.

In the end I have come off all the pain meds other than the odd paracetamol, and use heat/ice treatments to relieve the pain a little, together with a TENS machine that helps a bit as well.

*sigh*I think everyone in this world has his / her share of pain.....looks like it can't be helped.

So in the end my signature stands correct.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
int count (char vector[],int nr)

{
    int gasit=0,i; 
    for(i=0;i<nr;i++)
    {
        if(vector[i]>='a' && vector[i]<='z') gasit++;
          if(vector[i]>='A' && vector[i]<='Z') gasit++;
    }
   
    return gasit;

}

I think there is a better way of doing this, just use the [search]isalpha( )[/search] function which checks whether the given character is an alphabet or not. You require ctype.h header file to use this function.

Hope it helped, bye.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

It means that it cant find the required function or the function defination in your file. Is that function present within your .c file ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Phone Home -> Broken home

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Just wanted to tell you that sometimes your description is rather vague. Always post a question in such way that the person reading it doesn't have to use a compiler to test it out what is going wrong.

If your program displays something and takes some kind of user input, just paste a sample output which is erroneous or not as expected along with what did you expect. This kind of description will help us understanding the problem better.

Now as per your question is concerned, your program only checks to see whether the preceding string is equal to the current string and if it is so then it just skips printing the current string. But your program will fail in conditions where you alternate the words inputted to the program like:

hello
hell
hello
hell
hello

I hope you understand the twist .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

aliens -> ET

PS: It was a joke.

world        cup
universal   saucer

Hope you catch it :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

So where is the remaining code...?

Post it to get more help.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Not nice Joe, not nice at all.

I dont think he meant it...looks like he forgot to use a smilie...like me :mrgreen:

She's probably buit the script to roll over onto the next line before that

Naa..the limit is 9 stars..she herself told me so.:D

lack of industry experts to answer (and ask) serious questions that would warrant a special forum

Everything starts out small...no harm in giving it a try, if it fails Miss Dani can always scrap the whole forum if it turns out to be the way you are saying.:twisted:
Without experimentation no one moves ahead...