- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
19 Posted Topics
Hi everyone. I wonder why the following code doesn't draw anything. [code=java] package AssProgLang; import java.awt.*; import javax.swing.*; import java.util.*; public class AssOutput extends JPanel { public AssOutput(Queue translatedQueue) { this.translatedQueue = translatedQueue; outputFrame = new JFrame(); outputFrame.getContentPane().add(this); // outputPanel attributes outputFrame.setLocationRelativeTo(null); outputFrame.setPreferredSize(new Dimension(640, 480)); //this.setPreferredSize(new Dimension(640, 480)); outputFrame.pack(); outputFrame.setTitle("ASS™ … | |
Re: I'm not really sure if this'll work; but it's worth giving this a try... I hope this'll help... Thanks... [code=c] void insert(StorePtr *store, CategoryPtr *cPtr) { CategoryPtr *previousPtr; CategoryPtr *currentPtr; cPtr->nextCategory = NULL; currentPtr = store->headCategory; if (cPtr != NULL) { while (currentPtr != NULL) { previousPtr = currentPtr; currentPtr … | |
how are we going to define data in the FS and GS register using TASM? For example: in data segment: .data ; data here then: mov ax, @data mov ds, ax mov es, ax how do we do something like that for the FS and GS? | |
Hi everyone! I am in Windows XP and this has been my problem whenever i use graphics mode in C. We are required to use the Borland Turbo C compiler IDE (with the blue background thing.) Here is the problem: Whenever I run the program in graphics mode, it always … | |
I am in Windows XP and this has been my problem whenever i use graphics mode in assembly. We are required to use a TASM assembler. Here is the problem: Whenever I run the program, it always runs on full screen. Is there a possible way to restore the size … | |
Re: [QUOTE]Hi I want to have a n*n matrix is there sombody to help me?? how i can write it?? [/QUOTE] You may start by making a two dimensional array, say [CODE]matrix[n][n];[/CODE], and store values in that array. I'm sorry for this nonsense post. Just trying something good out after reading … | |
Re: I always have this as the best solution. Just a suggestion, you can still open your files right? Make a back.up of all your files. Then, format your hard disks and reinstall your Windows (since non of your programs will work). A virus might have caused this. Once reinstallment is … | |
Re: I agree to [B]winrawr[/B] at post # 12: [quote]I see no problem with contributing something to a solved thread, especially if there's more than one way to do it. If the OP doesn't need any other way to do it, that's fine, alternative answers can be a benefit to other … | |
Re: Based on what I have learned, an [B]expression[/B] is an [B]assignment[/B] to a variable like: [code] int sum = 1 + 1; float a = 2 * (2 + 1.5); [/code] So, anything that has the [B]=[/B] sign is considered an expression. [icode]strcpy(str, "copy")[/icode] is an expression as well. See … | |
Re: I got [B]infractions[/B] because of not using [B]code tags[/B]. Learn to add [I]code tags[/I] in the [B]Quick Reply to Thread[/B] box before typing anything... I recommend that u should do tags next time... In your program, syntactically, it is correct. | |
Re: [quote]35nando: When my program in C++ exits, it throws errors like: EInvalidPinter with message 'Invalid Pointer operation' ... and later: EAccessViolation with mesage 'Access violation at address 00000010 ... and finally: Abonarmal Program Termination[/quote] If your program uses alloc() or the like or whatever that allocates something to a pointer, … | |
Re: I guess that is caused by a very vicious virus... Try virus scanner stuffs... | |
Re: I recommend that you will use [icode]strcpy()[/icode] to assign/copy strings in a variable. Rather than [code]deck[0].name=="2 of Diamonds";[/code] use [code]strcpy(deck[0].name, "2 of Diamonds")[/code] Always use strcpy() to assign a string to a variable. strcpy is found in string.h ![]() | |
Re: Let's just all calm down... He has just asked the answers for about less than 10 out of 40 questions...Everone hopes, you follow post # 3 [quote]YOU tell US what you think the answer should be[/quote] And if your answer is wrong, don't worry, everyone will teach you [B]how to … | |
Re: For me, the best solution is: reinstall your Windows again. If the same problem goes with the keyboard, the key- board is the problem. If the audio still won't work, try using your speaker to a radio, mp4, iPod, or whatever to see if your speaker really functions well. If … | |
Re: Just a suggestion: If things will turn out to be the same after so many remedies, better reinstall your Windows again... | |
Re: 1. string is not defined as a variable in C++. Use char* or char[50] instead. 2. str="ABCDEFGHIJK"; is erroneous. Use strcpy() or the like instead. Thanks... | |
Re: Hello... This is Neigyl... I'm still a newbie here... I hope this'll help... [code=c] #include <stdio.h> #include <stdlib.h> int main () { int a = 11, b = 10; /* We didn't use a relational operator here but the definition of max() and min() in stdlib.h uses so. */ printf … | |
Re: I just want to clarify what these functions are: 1. 2 pow n−4. Is this 2 pow (n - 4) or [ 2 pow (n) ] - 4. I suppose it's the former. 2. n2 + 8n log n. I am confused with this one. But, I suppose it is … |
The End.