-
Replied To a Post in virues problem
Um...what? -
Replied To a Post in Does anyone know why this code gives me a segmentation Fault?
The code you've linked to doesn't compile due to undeclared variables. Could you post the updated code which produces a segfault here, please? -
Replied To a Post in Invoking a method without referencing project
Hmm, my initial reaction is to suggest fixing the circular reference. You could try using reflection to invoke methods in a compiled assembly from the other project, but that strikes … -
Replied To a Post in Two versions of a program, only one works
How is the second one faulty? The most notable potential problem is you're incrementing `num1` rather than `count`, but whether that's a bug depends on what you expected to happen. -
Replied To a Post in Strange program compiles
> Why does this not need to be int main? Prior to C99, omitting a return type causes the compiler to assume you meant `int`. This is called "implicit int", … -
Replied To a Post in explain this line what does it mean ?
That code is weak in that it makes an assumption about the bit representation of characters. In particular ASCII upper and lower case letters differ only in whether the 6th … -
Replied To a Post in ARP ARP
> PLEASE PLEASE Please read our rules concerning homework. If you need help with anything specific, ask a specific question. Nobody here will do the work for you. -
Replied To a Post in Want to build Operating System
> The problem is i don't even know programming. Yep, that's a problem alright. A big one. I'd start by searching for tutorials on how to write an operating system; … -
Replied To a Post in Different privacy policies(Not on daniweb, relax!)
> Even Daniweb promises to never go through private messages. Which seems like a mistake on our part. Daniweb's TOS should probably include a qualifier that PMs may be reviewed … -
Replied To a Post in better way of doing if statements
This sounds like a variation of a repository library I wrote. The ID structure wasn't quite that simplistic, but the concept is similar. Something like this would be a start … -
Replied To a Post in need help with cmd
It sounds like you copied the executable itself rather than creating a shortcut. -
Replied To a Post in what is a dynamic array of pointers and how can I intialize it ??
> how can I use it ?? A "dynamic array" is really nothing more than simulating an array. Once created, you use it very much like a regular array. > … -
Replied To a Post in very important
Please read our [rules](https://www.daniweb.com/community/rules) concerning homework. -
Replied To a Post in So much info.. what is right?what is wrong?
It seems the subtle humor of my response was lost on everyone. ;) -
Replied To a Post in how to write a program of functions accepting values and returning values?
Your question is essentially "how do I write a program using functions?", which is extremely vague and basic. Do you know how functions work and the syntax for defining them? -
Replied To a Post in vb 6.0 project
Someone can help you when you ask a specific question. Daniweb isn't a "do my work for me" service. I do have one question though, given that VB6 is increasingly … -
Replied To a Post in I am lost with reading from a .txt
It depends quite a bit on the contents of your file. Let's say that the file looks like this: resistor inductor capacitor diode transistor circuit Then you would replace your … -
Replied To a Post in qsort text file
You're sorting and printing while building the array, which is not entirely incorrect, but unlikely to display properly. Finish reading the file, then sort and print; you'll get the correct … -
Replied To a Post in Using int values to if statements
> Is it valid to use an integer variable as a condition? Yes. This: if (var) Is logically synonymous with this: if (var != 0) Provided `var` has an implicit … -
Replied To a Post in How do you post formatted code?????
The reply editor also has helpful buttons that will do this for you. 1. Select your text and click either the Code or Inline Code button to apply formatting. 2. … -
Replied To a Post in So much info.. what is right?what is wrong?
> How can you make sure that the replies and info we receive are correct? Trust, but verify. If only one source tells you something and others contradict it consistently, … -
Replied To a Post in Notify icon to all employee computer's when adding new employee
Off the top of my head, I might approach it two ways: 1. Simply have the application check periodically for new records. This would be the easiest to implement, but … -
Replied To a Post in One-Dimensional Array
Works fine for me. Compare and contrast: #include <iostream> using namespace std; int main() { char input[256]; cout << "Password? "; cin.get(input, 256); for (int i = 0; input[i] != … -
Replied To a Post in Buffer overflow exploit vulnerability C
> I could not agree less, but to each their own. Fair enough. I'd be a hypocrite if I said that there's no value in learning the dark side, but … -
Edited ajaxToolkit:ComboBox displays drop down list items away from the control
I have the following code in my web page <div class="RegFieldsCountry"> <ajaxToolkit:ComboBox ID="Country" runat="server" CssClass="RegComboEntry" TabIndex="8" Width="180" ValidationGroup="SetUserValGroup" AppendDataBoundItems="true" DropDownStyle="DropDown" ToolTip="Country Selection" BackColor="#C0C0C0" ValidateRequestMode="Enabled" EnableViewState="true" ListItemHoverCssClass="CountryHoverListItem"/> <asp:RequiredFieldValidator ID="RequiredRegComboValidator" runat="server" ControlToValidate="Country" … -
Replied To a Post in How to reverse a string in C?
Here is the fix: for (i = len - 1; i > m; i--, m++) { I'll leave it to you to figure out why that fixes it, but working … -
Replied To a Post in One-Dimensional Array
The logic should be conditional. You're inverting the case based on the original case, not unconditionally changing it: for (int i = 0; input[i] != '\0'; i++) { if (isupper(input[i])) … -
Replied To a Post in using windows for 5 years
> i suck because i had zero knowledge on Unix or Linux No, that's silly. Will learning other operating systems help round you out as a developer? Sure. Does your … -
Replied To a Post in Buffer overflow exploit vulnerability C
> Understanding how buffer overflows attacks are implemented is key to understanding how to prevent them. Hardly. Preventing buffer overflow in code is not dependent on understanding the details of … -
Edited BSIT
I AM A IT STUDENT IN SARGODHA UNI AND I LEAR C++ LANGUAGE. -
Replied To a Post in Spliting string and get date
> The part I’m struggling with is getting the date out of the string which will work for different string lengths So here's my thought process as a professional (as … -
Edited convert arraylist
Convert from int arraylist to string arraylist and double arraylist to string arraylist java -
Replied To a Post in convert arraylist
Done. Show me yours and I'll show you mine. -
Undeleted a Post in c programming variable name rules
Do you mean what rules you *must* follow for a valid identifier, or guidelines for informative variable names? -
Deleted a Post in c programming variable name rules
Do you mean what rules you *must* follow for a valid identifier, or guidelines for informative variable names? -
Replied To a Post in c programming variable name rules
Do you mean what rules you *must* follow for a valid identifier, or guidelines for informative variable names? -
Replied To a Post in setting an array to -1
It rather depends on the type of the array. If it's anything but some variant of `char`, I'd recommend using a loop to avoid nasties by diddling with individual bytes … -
Replied To a Post in array out of bounds
Undefined behavior is unpredictable by definition. You could certainly figure out why it "works", but it would be specific to that version of that compiler. -
Replied To a Post in program to print the longest word in a string without using any built in fu
At a glance, the logic looks okay. There are some nasty habits that should be eliminated though: > \#include<conio.h> The conio library is not needed in this program, it and … -
Replied To a Post in does anyone have a 2tb hdd
... -
Replied To a Post in Counting Sort with random numbers and Timing
Normally I'd point out what's wrong, but in this case it's *very* instructive to work through what the code should be doing versus what it's actually doing on paper. Here's … -
Replied To a Post in Buffer overflow exploit vulnerability C
Sorry, but discussion of hacking is against Daniweb's rules. We can help you at a high level, but anything more detailed that could be used to create an exploit is … -
Replied To a Post in Class is inaccessible due to its protection level
> Ok, so I tried to change my class properties as Pritaeas suggested, but this didn't work. It should work, but it's hard to tell why not without seeing a … -
Replied To a Post in unresolved external symbol _Clrscr@0 referenced in function _main@0
That's a pretty simple one. There's no definition of the _Clrscr function anywhere in the translation unit. Visual Studio doesn't come packaged with any form of clrscr as a "standard" … -
Replied To a Post in program to print the longest word in a string without using any built in fu
> if u want then i can give u the code how to break the sentence into each single word. Yes indeed. Showing what you already have is a good … -
Replied To a Post in c++
Please read our rules concerning homework. -
Edited C Shell Script
I very new to C Shell. I am trying to do is read from Command line. Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is … -
Replied To a Post in video game programmer requirements
1. I'm of the opinion that it's always worth learning different languages. However, more important than learning a language in the same family (eg. C# is in the same family … -
Replied To a Post in program to print the longest word in a string without using any built in fu
Yes, someone can help. What do you have so far? If you don't have anything, what's your thought process for working it out? Have you analyzed the structure of a … -
Replied To a Post in logic of a C++ program
Given a certain measure of development experience, simply seeing the behavior of a program can offer insight into the underlying logic as well.
The End.