- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
70 Posted Topics
Re: You need to link to the GL library. What you need is to add the [icode]-lGL[/icode] in your linker options. Likewise if you need glut or glu library functions you want [icode]-lglut -lglu[/icode] respectively. The trick is to remember that if you use any functions from included header files that … | |
Re: Is there any reason you can't use the package manager (Synaptic in this case) to install it? It will resolve all of the dependencies for you. | |
Re: The early attempts you've attemted to compile with the wrong architectural targets for your sources, it even warned you about that, obviously that's going to have issues. The final attempt you've set the correct architecture but the version of libgcc it has found is incompatible (as the errors state). Those … | |
Re: No problems here on GCC 4.3.3. What are the exact versions and compiler commands executed? | |
Re: Hang on is this a Project or a Thesis? Sounds a lot more like a project to me. In the sense that with a Project you are producing the system not just the research. | |
Re: So you want to write obfuscated code? Or you want to write a tool that obfuscates code for you? (i.e. removing comments, replacing meaningful names with meaningless ones, etc...) | |
Re: [QUOTE=wildgoose;902385]You will require a semaphore to keep both threads from accessing the same data simultaneously. [/QUOTE] A semaphore with only one token, more commonly known as a 'Lock'. | |
![]() | Re: Look at the most basic computing definition of a buffer as temporary storage, RAM falls into this category. |
Re: So you want one class that has a whole heap of inner classes? What benefit does that give you? | |
Re: [QUOTE=dennbibbs;905593] 1- Discuss any 6 application areas of Computer Graphics? [/QUOTE] Perhaps you should be the one to start the discussion. [QUOTE] 2- Explain briefly what you understand by Matlab Figure? 3- Explain what you understand by Display Processor? [/QUOTE] Sounds like these questions were given to you, so you … | |
Re: I'd say shadwickman's assumption that you had little programming knowledge was also boosted by the fact that it appears you don't seem to understand .Net is not a programming language (I suppose more pressing is what university allows you to get to a masters level without understanding this). .Net is … | |
Re: post the output of 'where' in gdb, that will give us the whole stack. | |
Re: [QUOTE=serkan sendur;894204]get some microsoft certifications too, like MCDBA[/QUOTE] DBA isn't exactly programming-based. Getting certifications like that is unnecessary unless the specific job you are going for requires it - and if it does it likely requires a degree in computer science or similar anyway. Do a bit of research, the … | |
Re: [QUOTE=anirbanjoy;893039]Thanks .. that did help .. There is only one linking error now, it's an extern variable .. the problem is same .. "undefined reference to <var_name>" .. Need to share this variable .. that means I have to keep that extern stuff .. but, how?[/QUOTE] The short answer to … | |
Re: If you want portability or the ability to easily port between managed and unmanaged code then C++/CLI will provide the least effort. .Net is language-independent as everything gets compiled to an intermediate language first so you can use it's features through whichever .Net language you choose and you'll find a … | |
Re: try [code] SetConsoleTextAttribute [/code] Pass it a handle to the console and a number from 0-255. | |
Re: What is the high-level approach you are taking to solving your problem in parallel? As wildgoose said, it seems like you aren't actually running anything in parallel. | |
Re: [QUOTE=yun;888933]I want to read and write string from file, - Dont want to overwrite on the existing file [/QUOTE] So you want to read a string from a file and write it to another file? You haven't really explained what you are trying to do. [QUOTE] - Where to put … | |
Re: Do you know what line the main_loop code in the thread gets to? Given it is flagged as a deadlock Im thinking this could potentially be a case where clicking 'close' caused your main thread to acquire a wxWidgets resource that your main_loop code needs to access before it reaches … | |
Re: [QUOTE=mahesh parmar;886814]what is design tactics in terms of software architecture.[/QUOTE] Google for 'design patterns', also have a look at the Gang of Four patterns book. | |
Re: The cstdlib header contains the definition for the exit function as csurfer said, however up until recently this header was generally included by dependency - often unnecessarily - by other headers. So you are likely to see tutorials and books that rely on this - and other - header dependencies … | |
Re: [QUOTE=john_beginner;884238] so, how compiler will distinguish that get_a(),no1 is come from class A & get_b(),no2 is come from class B [/QUOTE] Does it matter? If you look at the relationship you created, Class C [I]is a[/I] Class A and a Class B. Therefore Class C has the methods get_a and … | |
Re: [QUOTE=yun;887230]the best way to use Recursive function is.. use Wrapper Function, as in the below case CheckPalindrome is the Wrapper function.[/QUOTE] I can't say I'd agree with your example. It's just a function that calls another function, the wrapper is pointless as it does no translation. Moreover the recursive function … | |
Re: You can just include the relevant headers from wherever they are installed on your system. That gives you the function declarations then you just need to link to the xerces library (usually something along the lines of libxerces-c.lib or libxerces-c-x.x.lib) to get the function definitions. No need to create your … | |
Re: [QUOTE=JaksLax;887442]In the int Poly::degree() function, if I change return Poly[2] to Poly[15] it returns 134514720, no error about going out of the array range is shown when I run the program.[/QUOTE] No, you wont see any error. In C++ an array is not a class, it does not have member … | |
Re: As Salem said, if they require a username and password then it is likely copyrighted material and you would likely be violating copyright law by obtaining them elsewhere. | |
Re: Application Architecture is exactly that, the architecture of an application. This includes the relationships between the components. Of course each application is different so largely there is a broad range of application architectures. Perhaps have a look at the Gang of Four books on design patterns as these would help … | |
Re: [QUOTE=Narue;883676][B]> [B]>Can C++ be combined with divx to make a 3d game.[/B] The answer to any "Can C++ do <xyz>?" or "Is <xyz> possible?" is almost invariably yes.[/QUOTE] Except in this case as divx is a video codec. Utilising standard c++ and divx you will not make a 3D game … | |
Re: Also you have declared a class-scope variable [code]int array[] = new int[n];[/code] Then another variable with the same name at method-scope in the constructor. [code] int array[]= {1,2,3,4,5,6,7,8,9,10}; [/code] In the constructor you are modifying the method-scope 'array', not the class-scope one. When the constructor is finished it's 'array' will … | |
Re: Images are not embedded into HTML files, they are referenced. HTML files are just text files, they tell the browser where to find the content. That is the HTML document tells the browser where to find the image files, in your case the folder in the same directory. MS Word … | |
Re: [QUOTE=SanjitVigneshS;883529]It impossible to call anyone a professional programmer. May be one in a [B]million[/B]. [/QUOTE] If programming is your profession then I'd say you could quite confidently call yourself a professional programmer. Another skill that is required - probably at the intermediate level - is the knowledge of how the … | |
Re: It won't cause an exception, though reading from a dataset whilst it is being written to can cause serious race-conditions. Consider the case where 1/2 the data has been written to, then the writer is scheduled off, the reader is scheduled on and reads the data. It will get 1/2 … | |
Re: You'll notice in the code there are matrix translation functions. These control where in the 3D space things are drawn. Have a read up on 'matrix stacks' for describing the different 'spaces' in a 3D world and the methods of positioning 3D environments should become more clear. Have a look … | |
Re: [QUOTE=jencas;882440] You don't have a global pointer!!!!!! node is a variable in the scope of GenerateNodeList(). The lifetime of node ends with leaving the scope of GenerateNodeList(). [/QUOTE] Potentially you need to read both the code [I]correctly[/I] and the question. Both refer to a globally declared Node pointer named root. … | |
Re: Where is your attempt? We can't just do your homework for you. | |
Re: pthread_cancel would probably be your best option for cancellation and cleanup, though weigh up whether it is actually worth the effort to terminate the threads or just let them run to completion. Obviously this depends on the nature and size of the data and operations being performed as well as … | |
Re: [QUOTE=seriousgeek;866387]Can anyone please suggest what all computer skiils or languages should i know for increasing my chance in placements into companies like Yahoo?? Currently i know c.c++ and java..Is it necessary to know shell scripting and scripting languages like perl, python, php..Wat about networking??[/QUOTE] Well that depends on what you … | |
Re: The reason is that you have used 'guess' ([icode]while (guess != random)[/icode]) without giving it a value first. i.e. the first time you try to compare 'guess' to 'random', guess has no value. So initialise it to 0. No need to do that for 'random' as you initialise it before … | |
Re: Erasing the map elements will remove the containers but it won't 'free' the memory you allocated for the objects contained within them. | |
Re: So with breakpoints, the value of the string in vector just before you extract it is valid? If so perhaps the replace the call to [icode]StringBuffer.at(i).PrintString[/icode] with something like "Hello World". And see what happens. That way you get a picture of what the value is in the data structure … | |
Re: Why not just write a program that runs the loop and outputs 'k'? This really sounds like homework. | |
Re: You're trying to assign a pointer to an object of type NumberList to a pointer to an object of type ListNode. EDIT: Though I'd thought that would be explicitly specified in the compiler error? | |
Re: Well you could fill a texture with random noise and pass this to the shader, it would be faster to generate this on a per frame basis than call a randomisation function - if that were possible (see below) - on a per-pixel or per-vertex basis. So why cant you … | |
Re: [QUOTE=Narue;865945]>What is the difference between programming and scripting? Scripting is generally thought of as application extension that cannot run without the aid of a hosting application. Shell scripts, for example, can't run without the aid of the shell, but they're not a component of the shell. Programming on the other … | |
Re: The most likely cause, and you haven't got a check for it, is that the file does not exist in the specified path. That will cause the error you are seeing. | |
Re: Consider that you have declared them as type 'void'...perhaps you want them to be 'string'? But as above, that would just be scratching the surface. That code is.....?! | |
Re: That code compiles/runs fine on gcc 4.3.3. No crash/segfault. | |
Re: You are trying to assign the return value of getline to a type variable of type 'string'. The getline function takes an input stream as it's first parameter, like you have given it, and the string that you would like to assign the extracted value to as the second parameter. … |
The End.