137 Posted Topics

Member Avatar for erialclaire_238

You should put the numbers at some place... and check every one of them... That is an extremely easy solution.

Member Avatar for skatamatic
-1
98
Member Avatar for joejoe55

Can you add a semicolon after MYVAR(DLLINFO, DllInfo), like MYVAR(DLLINFO, DllInfo); It may cause an error, if I assume that it is line 20 of vars.h.

Member Avatar for mitrmkar
0
192
Member Avatar for mimis
Member Avatar for mimis
0
371
Member Avatar for JameB

About the first post, it is a good programming practice to put the character code inside a const variable. Instead of hard-coding the ASCII code of the character, just put the constant. It is more elegant and is very useful if the character is not the wanted one (instead of …

Member Avatar for GDICommander
0
134
Member Avatar for ofnature

First, indent your code. It is more readable in that way. Second, how will you find the answer with a pencil and a paper? Answering this question will lead to the structure of your program. Understand the equation first and compute it after! Don't hesitate to use functions to wrap …

Member Avatar for ofnature
0
847
Member Avatar for mimis

For the next tips, I will assume that you know object-oriented programming: 1) Think about how you will represent your tree. I suggest that you take a pencil and a paper and draw a binary tree. 2) What will you do on the tree? (Insertion, deletion, ...) How will the …

Member Avatar for GDICommander
0
113
Member Avatar for jeevsmyd

This is a character-by-character copy of the source file to a destination file. This is what the code does.

Member Avatar for siddhant3s
0
107
Member Avatar for lipun4u

Yes, they exist. Go for online help on the menu bar (in help) and they will be here. I recommend you this site. It contains a lot of documentation. [url]http://www.scheme.com/tspl3/[/url]

Member Avatar for GDICommander
0
112
Member Avatar for smileyme74

SRL (Shift Right Logical). This instruction shifts all the bits to the right from a given number of positions. For example, if I do SRL on 0011100 with 3 positions, the result will be 0000011. You should see the documentation of the processor you use to know if the shifted …

Member Avatar for GDICommander
0
118
Member Avatar for GDICommander

Hello, everyone. Is there a program on Linux that displays all the processes that are holding a reference (or handle, I know that it is a Windows word) on a specific file? You know, like Process Explorer on Windows. That will be very useful for me. Thanks for your answers.

Member Avatar for GDICommander
0
100
Member Avatar for NickMalone85

This is what I suggest to you: 1) You will take your FileToArray() function and you will test it with all the possible limit cases (even if they are stupid). If there's no problem, then you will remove it from the post. 2) Do you know JUnit? I strongly suggest …

Member Avatar for Ezzaral
0
88
Member Avatar for Dolphinsfan
Member Avatar for mikemea

Use &type_of_gas instead of type_of_gas. Without more code, I cannot help much further.

Member Avatar for GDICommander
0
74
Member Avatar for acardiac

Looks like an homework question. Look here. [url]http://www.cplusplus.com/reference/iostream/istream/[/url]

Member Avatar for rudasi
0
128
Member Avatar for Carmen Smith

This is not a C++ question. Just think about how you will represent it and if you have problems with C++, your post will be more likely to be solved. For the update, do a search on the Observer design pattern. That will be a good start.

Member Avatar for Carmen Smith
0
84
Member Avatar for FEARmike21

The last << causes trouble. [CODE] cout << "Area is:" << a << "for radius of:" << r << ; [/CODE] Remove it.

Member Avatar for rudasi
0
95
Member Avatar for yair7190

You can use Getopt. Here is the link: [url]http://perldoc.perl.org/Getopt/Long.html[/url]

Member Avatar for bryansmith123
0
321
Member Avatar for monocog

And if you want to use templates (to do a list of int, of string, of any type), replace: [CODE]class List[/CODE] by [CODE]template typename<TYPE> class List [/CODE] In an another file (.cpp), implement your functions like this: [CODE] template typename <TYPE> void List::first() { } [/CODE] And I hope for …

Member Avatar for nucleon
0
167
Member Avatar for viki0077

It's simple. This is a method of the Wallet class that takes a Wallet as a parameter, takes its amount of money and adds it to the Wallet on which the method is invoked (this). The other wallet has its amount set to 0. To find the error, create the …

Member Avatar for ArkM
0
86
Member Avatar for trevorp

From this code without using code tags for C++, I can't see the presence of spaces. Is (VectorA^VectorB) a Vector variable? It can be a quote (") problem. Make sure that there are spaces at each side of the << .

Member Avatar for nucleon
0
193
Member Avatar for southernd0529
Member Avatar for shamila08

The best way to do this is with the modulo operator. (%). It returns the remainder of the quotient of 2 integer numbers.

Member Avatar for shamila08
0
114
Member Avatar for vivekc++
Member Avatar for kiong

Do a good analysis. It is the purpose of this assignment to solve a complex problem. And for c_str, look at this page: [url]http://www.cplusplus.com/reference/string/string/c_str.html[/url]

Member Avatar for kiong
0
238
Member Avatar for driebel

For appending a string with another, use the append() from the string type. Use this link for more info: [url]http://www.cplusplus.com/reference/string/string/append.html[/url] For converting a string to an integer, use atoi() function from the C library. For converting an integer to string, use itoa() function from the C library.

Member Avatar for DemonGal711
0
197
Member Avatar for guest7

Check if you are accessing memory that you have not allocated. Are you using an invalid pointer? Are you using pointers? Are you referencing an iterator on the end of a vector? (ex: it.end()) Without source code, I cannot give you more advice. I hope that this tips will help.

Member Avatar for guest7
0
82
Member Avatar for kiong

You will need cin, cout, printf(%s, "a std::string".c_str()). Read the documentation about it. Looks like an assignment. Good luck. Design your program before attempting to code.

Member Avatar for Lerner
0
99
Member Avatar for GDICommander

Hi, everyone! If you have worked on ACE, this is the post for you. I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: …

Member Avatar for GDICommander
0
224
Member Avatar for Nick_Plante

Use rand() function. If you want truly random values at each program execution, use srand() function and put time() (returns the time in seconds since a given start moment) as the parameter for srand(). Again, look for other references for more info about these functions.

Member Avatar for GDICommander
0
150
Member Avatar for fidan

You can use gdb to debug your program. The following link can help: [url]http://www.cygwin.com/cygwin-ug-net/gdb.html[/url]

Member Avatar for GDICommander
0
163
Member Avatar for pong pong

Use regular expressions. Here is the link: [url]http://www.troubleshooters.com/codecorn/littperl/perlreg.htm[/url]

Member Avatar for mitchems
0
188
Member Avatar for supermodel

Put all the code for input into a do-while loop. For example: [code=java] do { //Input... } while (//The variables have their correct value); [/code]

Member Avatar for GDICommander
0
270
Member Avatar for GDICommander

Hello everyone. I am using ACE and I'm using the following method: ACE_OS::read(char* buffer, int nbbytes, int perms); I was informed that Windows is reading data from disk sectors and it puts the contents of the read sectors into the cache (who is in memory). I don't want that behavior …

0
45
Member Avatar for kos88

Two possibilities here: -the String of Venn is null. -p is null and that is why the message is not printed. Use System.out.println("Debug messages") to trace the execution of the code. This will help.

Member Avatar for Kabbelabb
0
186
Member Avatar for SAZAR

It's easy to do with a command-line interface. You can emulate a console interface and navigate through your file system. It is easy to implement "ls" with iostream of fstream. You will have plenty of fun to do it.

Member Avatar for GDICommander
0
136
Member Avatar for smashpumpkin

I don't see brackets surronding the parralelIterative function. If this explains the error, it will be good. Also, a semi-colon after the parralelIterative line is not correct.

Member Avatar for smashpumpkin
0
123
Member Avatar for GDICommander

Hi, everyone. I am doing a performance test on the heapsort. I wrote this program and it has a run-time error that I cannot explain. I am compiling on Microsoft Visual Studio 2008 and this is the error. HEAP CORRUPTION DETECTED after Normal Block ... well, I think that the …

Member Avatar for GDICommander
0
116

The End.