sillyboy 43 Practically a Master Poster

Are you after like a full on paying project? or something as a hobby?

sillyboy 43 Practically a Master Poster

could also print as you populate :p

sillyboy 43 Practically a Master Poster

Well I am from Australia.

sillyboy 43 Practically a Master Poster

This is probably just a case of the professor trying to scare kids by using code in a way it generally won't be used. If your professor does insist that is the answer and won't budge, just listen to his explanation and remember his rules for the duration of the course. After you pass the course, you can go back to using code as it should be used.

sillyboy 43 Practically a Master Poster

Your questions are related to the fundamentals of forks. What are forks? Where are they used? Are they essential? These questions have been answered (yes from a C perspective), but that does not change the answers.

sillyboy 43 Practically a Master Poster

My understand in that i++ means the incrementation should be completed after the particular line of code (maybe the printf complicates things). Where ++i means to complete the statement before. So I would have thought the result should be 5, 5, 5 and then i++-- ... which is just 'i=5' before the next line of code.

EDIT: Well this got me curious, GCC gave me 6, 6, 5 as others have suggested.

sillyboy 43 Practically a Master Poster

Are they essential????

Depends on what you are coding (Generally, I'd say no). Also, check the other forum.

sillyboy 43 Practically a Master Poster

Sorry, I obviously misunderstood what you wanted. I could post some C examples, but considering this is the C++ forum and you said they look different, I'll only do it if you request it. Hopefully others are a bit more cluey about C++ forks.

sillyboy 43 Practically a Master Poster

1. Learn English
2. Learn Java
3. Do your project

sillyboy 43 Practically a Master Poster

Um... assuming you have written that code (which looks very neat), it seems odd you can't do some simple debugging. Do what "iamthewee" said.

sillyboy 43 Practically a Master Poster

This is really an outrages thread. Even if somebody wanted to help you, we have absolutely nothing to base it off... Hotel Management is a broad subject (I assume).

sillyboy 43 Practically a Master Poster

OH... C++, ok well I was thinking C here. I have noticed most C++ references don't use printf in their code. Anyway I was just saying printf, as it was stated in the thread title, and I guess it could be a requirement of the assignment?

sillyboy 43 Practically a Master Poster

Ah, magazines didn't even consider that. Thanks for the reply.

sillyboy 43 Practically a Master Poster

I don't really see why you would want to change the way your blog looks. White text on black backgroung... well I actually don't mind it. I do agree however that an image background will be distracting more than "nice". In my opinion that web site looks good (maybe change the reply box appearance if anything).

sillyboy 43 Practically a Master Poster

Ok, you definitely need a return. If you didn't want a return you would say "int main()", but even with main it is advised you do return. I haven't tested your particular segment of code and I don't think I will, but it looks like it would get the desired result. If you want to think about this more, you should think of a more elegant solution (e.g. do you really need another variable int i? etc.) Also, I think "srand" used by Aia is a better solution.

sillyboy 43 Practically a Master Poster

What narue said applies. But I'll help you a little: isPrime(int x)

sillyboy 43 Practically a Master Poster

Hi all, this question may have been asked before, and if so, sorry and feel free to flame me for it. But coming from a programming background and no so much web design, creativity is very much a weakness of mine. Do you know of resources/templates that could aid me here? I'm not looking to rip off templates and stuff, I would like to do it myself, but most things I try just look very ... ordinary. I recommend a sticky, if this type of question is asked a lot.

sillyboy 43 Practically a Master Poster

Aren't windows & unix text files essentially the same except for their line endings? (Just curious)

sillyboy 43 Practically a Master Poster

Jaav a couple issues with that code:
1. you have an impossible condition inside that while loop.
2. rnd is initialised after it's use.

sillyboy 43 Practically a Master Poster

Well I am no expert on forks either, but I have done a little with them in C (I assume principals will be the same with C++). So with a fork you spawn many process from a "parent". And so its use it with using multiple threads. An example of this would be a web server that is run as a process, and as connections are requested, this main process will spawn a "child" (using fork) to manage the particular connection (thus allowing multiple simultaneous connections). As I said, I am no expert so if I have made errors somebody correct me. Also remember to reap each child process, otherwise you can see yourself creating a "fork bomb" and consequently quickly using up your system resources (I am an expert at doing this :)). Hope I was some help

sillyboy 43 Practically a Master Poster

Even using printf, it should be an elementary solution. Just try understand how a for loop works (should be simple for this problem), and read up on printf and it's various options. The maths of this solution is also very simple. A bit of trial and error is a good way to learn also.

sillyboy 43 Practically a Master Poster

Hi,

String query="Delete from businessprocessinfo where bpname=("request.getParameter('bpname')":P";

Saswati

Have you tried this in SQL, because you are trying to access a variable within a string without catenation (spelling?).

sillyboy 43 Practically a Master Poster

hi guys.. i need help.. can you give me a simple program of games in java except for tic-tac toe? i need it at the end of july.. i want to pass this subject and i want to master this programming language... please do grant my request... thank you very much

If somebody writes the game for you, it is going to work adversly towards your mastering of the language. Google would be a good place to start, and not just the first results page.

sillyboy 43 Practically a Master Poster

Suprisingly all those questions have the same answer!!!

#include <stdio.h>
 
int main() {
  printf("Hello World\n");
  return 0;
}
sillyboy 43 Practically a Master Poster

Yep, one of those problems that get you frustrated when it is just a typo. Try what ~s.o.s~ said :D

sillyboy 43 Practically a Master Poster

I think this question is pretty much impossible to answer without a link to your website. Assuming you are just going to use a image as your background, this is also something that HTML or CSS are going to be unable to help you with. It might be a good idea to ask the graphics forum about designs. A lot of the time, simple colours work fine as a background.

sillyboy 43 Practically a Master Poster

Are you using MS Word to create these .txt files? If so, I think you are encoding your text differently to what their web pages are using. If you want, try using notepad (or else, just make sure you use UTF-8).

sillyboy 43 Practically a Master Poster

Just get rid of "auto_increment".
I think it'll work with int(13), if not, just use NUMBER.

sillyboy 43 Practically a Master Poster

Well I am quite sure this isn't possible using Oracle alone, so I will be writing a windows service or something to do this for me.

sillyboy 43 Practically a Master Poster

I'm not entirely sure If this is going in the correct location. What I want is to set up my database so that it will updated every hour. I'm a little unsure on how to tackle this problem. Does oracle actually support this type of updating, and if not, would I need a process of some kind to be running on the server to do these updates?

sillyboy 43 Practically a Master Poster

I am trying to use the c compiler in MIPS SDE 5.03. But when I try to compile I get an error. My c file is just hello world at the moment, I'm just trying to get it to compile. Anybody used this before or have any ideas what I am doing wrong?

http://i130.photobucket.com/albums/p269/sugiman88/Error.jpg
Sorry I couldn't work out how to post pictures, but that is my error message.

sillyboy 43 Practically a Master Poster

I'm not actually after a processor for this. All I need is a compiler to emulate a situation with/without an extensive floating-point instruction set.

sillyboy 43 Practically a Master Poster

Hi all,
I am after a instruction set with limited or no floating-point instructions. Why I want this is to get a compiler of this certain architecture and compile code (one with floating-point and the other without). With the resulting assembly I wanted to compare the two and do some analysis.

So what I need exactly is a compiler with access to compiling with/without floating-point.

Any help is welcome, thanks in advance.