15,300 Posted Topics
Re: [quote=~s.o.s~;263248]Yeah i agree with you OP, lets get "back to primitive"...[/quote] Yea, right. Pull the plug on your home electricity and see how long you'll last without a computer:) I hate it when the power goes out during a storm. And if you want the return to the "good-old-days" you … | |
Re: you should not mix C and C++. In C++ use cin.ignore() to pause the program instread of C getchar(). And you don't need stdio.h either. [code=c] #include <iostream> using namespace std; int main () { cout << "Hello World"; cin.ignore(); return 0; } [/code] | |
Re: 1. initialiseBoard() is writing out-of-bounds in that matrix because those two loops are executing 1 too many times. Replace [B]<=[/B] with just [B]<[/B] 2. delete line 31. 3. delete line 95. the array is never referenced in that function. I don't know how you will test any of the rest … | |
Re: I thought [B]F[/B] meant [B]Friend[/B]. I changed CP to show dates/times as they originally were here. But I've become so acustome to seeing [B]Yesterday[/B] or [B]Today[/B] that I changed it back! I like not having to think about anything. :-O | |
Re: I like it the way it is now -- especially the line numbers. The only language syntax I've used is C, such as [ code=c ], which isn't very difficult to type. As for the box, yes I miss that too but I can live without it. | |
Re: I think a web server would be better coded in another language -- probably php or even C#, which are designed for that sort of stuff. | |
Re: [quote=jbennet;359313]lol if [COLOR=black]IQ=(mentalAge/physicalAge)*100[/COLOR][COLOR=black]then i am 4/17 * 100 = 24?[/COLOR][/quote] Oh Dear! :-O That makes my iq 156.:D | |
This just started after changing the colors and code tags yesterday. Copy some code and paste it into the Quick Reply box, then hit [b]Go Advance[/b] button. All the line feeds and spaces are lost, eveything is now on one line and I have to manually replace all line feeds, … | |
Re: If you are using ms-windows operating system you can include windows.h which already defined BYTE and WORD. If not then you can define them yourself like this [code] typedef unsigned char BYTE; typedef unsigned short WORD; [/code] | |
Re: Isn't it odd that the problem asks for the number of men, number of women, and the number of hetrosexuals as if hetrosexuals are neither men nor women :scared: I never new there was a third sex in the human race. | |
Re: you probably want to create a structure to hold the data for each customer so that the values will not disappear on each iteration of the do-loop. Then you will need an array or a linked list of those structures. After entering the account number search the array or list … | |
Re: you aught to post your web site in the [URL="http://www.daniweb.com/techtalkforums/forum55.html"]Web Site Reviews[/URL] board to see what others say about it and possibly give you suggestions for improvment. I personally didn't like its look, but maybe younger crowd will. As for your question, I'm not qualified to make such recommendations. ![]() | |
Re: [quote=RwCC;363618]and as always you Americans butcher classics. .[/quote] You have that right:D Hollywood loves to take a great film or series and [B]modernize[/B] it. Two examples: [B]Dr Who[/B] and [B]Godzilla[/B], both horrible remakes. As for the poll: Christina left out a category -- [b]neither[/b] | |
using Vista Home Premium. When I click a link such as [URL="http://www.daniweb.com/techtalkforums/thread77212.html"]this one[/URL] by cutepinkbunnies I see the video but no audio. Anyone know how to correct that ? | |
Re: its telling you that scores.size() is greater than 4, which is out-of-bounds. | |
Re: Now tell me -- how far-fetched is the [b]Planet of the Apes[/b] ? | |
Re: >>is that reasonable enough for a noob to program in that prob Depends. Was you hired to be a c/c++ programmer? Did you lie to your employer and tell him you already knew the c++ language? Or did he already know you were a java programmer who needs to learn … | |
Re: >>Can you run most windows xp software on vista? [b]Most[/b] -- probably not. >>some sort of emulation software I doubt it. You can install XP and duel boot with Vista. | |
Re: binary search algorithms normally expect the elements to be unique and sorted in either ascending or descending order. [U]Comments about coding style[/U]: It would be a lot better if you indented the code properly, such as indent sub-blocks of code that is enclosed in '{' and '}' braces by 4 … | |
Re: That is a reference to a nodeptr object in another function. The object is passed by reference so that [b]InsertListOrder()[/b] can change its value. Any changes to [b]Head[/b] in funciton [b]InsertListOrder[/b] will be made to the object in the function that calls [b]InsertListOrder()[/b]. | |
Not sure what causes it but sometimes the computer refuses to shut down. The only way out is to physically press the Off button. I have XP Pro with SP2, Norton Antivirus and Norton Firewall, AMDI 64-bit processor with about 1Gig RAM, 30 Gig hard drive (master) and a 235Gig … | |
Re: remove the "\n"s -- that is only for cout. Not allowed to have literals (text in quotes) on the cin line. | |
Re: what is all that crap? If you want to display a MS-Windows message box why not just call it directly ? >>mov eax, 0x7E45058A how do you know that's the address of message box function? The address may change every time the program is run. >>Not working. Could anybody give … | |
Re: 50 characters for a directory name isn't enough space. What if I copy/paste a path that is more than 50 characters? You need at least 255 characters. line 23: that does nothing. Delete that line. line 43: ditto -- nothing more than a do-nothing line. Now for your question: On … | |
Re: [quote=cancer10;351968]Planet Size Comparison - A Must See [/quote] I had never seen that -- and am awe struck :cool: | |
Re: you don't need function [b]moreToRead()[/b] Change lines 27-31 to be something like this: [code] while( getline(in,line) ) { // blabla } [/code] What format is the file? FirstName LastName <scores> ? | |
Re: I think you may have misunderstood the assignment. Are you supposed to ask for the information to be put into the file? The name of the file? or both? Is this a C or C++ program? What compiler and operating system? | |
Re: use putc() in a loop to display each character one at a time. | |
Re: Is [URL="http://wwwthep.physik.uni-mainz.de/~xloops/"]this[/URL] what you downloaded ? And did you also get the GiNaC C++ library which they provided the link to ? | |
Re: strtok() is not what you want. The text in string2 may or may not be a complete word surrounded with spaces. It could be a few letters of some larger word. Better if you just search string1 for the first character of string2. When (and if) found check if the … | |
Re: [QUOTE=jbennet;347744]Bush and Blair are both idiots. [/QUOTE] what else would you expect from politicians :) | |
Re: [QUOTE=Chainsaw;44847]It's taken 30+ years for insurance companies to bring tobacco companies down to where they are, and they have a long ways to go.[/QUOTE] not even close to 30 years! try [URL="http://www.forestonline.org/output/page34.asp"]12 years[/URL] :) | |
Re: I don't see the problem you describe. Do a print screen and attach the bitmap file to your post so that we can see what you are looking at. ![]() | |
Re: I'm 64 -- born 1943. Contrary to popular belief, age does not make one wiser -- just makes one older. | |
Re: >>my compiler isnt really letting me draw the board it keeps on insisiting that i have invalid types of data Post your code -- my eyes are not good enough to see your monitor. | |
Re: [quote=cscgal;360204]The goal is that they will aid navigation because, at a glance, you could see exactly where on the site you are.[/quote] I don't think it meets that goal because I doubt very few people will bother to memorize the color scheme. Looks great anyway. :* | |
Re: remove the semicolon at the end of line 13. That's a common mistake for even old-timers -- you just need to learn how to recognize the error. | |
![]() | |
![]() | Re: Its way too late for you to change majors now -- finish your business degree. After that you can get either another bachelors or a masters, or just get a job in IT. |
Re: [quote=jbennet;360866]Is ancient dragon really that old !!??!! I would never have guessed...[/quote] I thought everyone knew it by now -- I've never hidden that. But I'm only 20-something at heart:) | |
Re: Just a few (not all-inclusive) changes you might have to make: If your 16-bit program is using segmented pointer stuff you will probably have to recode that. Inline assembly code that contains interrupts (such as int 21) is not allowed, inp and outp are not allowed. Installation of interrupt handlers … | |
Re: Your function should return an int, not void. If you want the default windows message handler to also process the message then your function should return 1. Otherwise if you do NOT want this to happen your function should return 0. [URL="http://msdn2.microsoft.com/en-us/library/ms534905.aspx"]See here[/URL]. | |
Re: [URL="http://msdn2.microsoft.com/en-us/library/ms682623.aspx"]Here[/URL] is one way to get a list of all running processes. That gives you the PID of each process. | |
Re: how to draw a line depends on the operating system. If you are using MS-Windows you can use the win32 api graphics functions. If you are in MS-DOS you could probably just use a line drawn with dashes, in a loop of some sort. | |
Re: >>i don`t know if this is the right forum for this you are right -- this is the wrong form. could probably also save the pictures as a blob, but changing the original picture won't change the copy in the database like OLE objects do. | |
Re: there is a lot easier way to get a line from the keyboard than what you coded in the program.c file. fgets() will do all that nasty work for you, like this -- notice there are no loops and only 1 line of code other than the buffer declaration. [code=c] … | |
Re: what assembler are you using? I don't recognize some of those assembly instructions. See complete listing of 8085 instruction set [URL="http://en.wikipedia.org/wiki/X86_instruction_listings"]here[/URL]. | |
Re: The problem I have is that if I've already given rep to someone I can't see who else might have reped him/her. Get the error message that I must spread rep around before I can rep that person again. | |
Re: The decimal value 99 is two ascii digits -- a '9' and another '9'. So your program has to convert the integer into two digits, then convert each digit to ascii for display. |
The End.