Search Results

Showing results 1 to 40 of 43
Search took 0.01 seconds.
Search: Posts Made By: Nedals
Forum: C Jun 18th, 2006
Replies: 2
Views: 1,637
Posted By Nedals
Thanks, Narue.
Closely examining my code, I also realized that the 'cells' array pointer never changes, so the data was overwritten within the 'for' loop. Not exactly what I wanted.
I edited the...
Forum: C Jun 18th, 2006
Replies: 2
Views: 1,637
Posted By Nedals
This is a snippet from a larger block of code. The print statements are included for testing.

Within 'main', if I ouput the 'cell_ptr' or 'params' pointers, it correctly returns pointer values but...
Forum: C++ Jun 17th, 2006
Replies: 3
Views: 3,010
Posted By Nedals
Thanks...

Your first sample would not work for me because I canot array the actual 'key' names (bad example on my part).

Your second example, using <map>, will work. I had tried it earlier and...
Forum: C++ Jun 16th, 2006
Replies: 3
Views: 3,010
Posted By Nedals
#include <iostream>
#include <string>
using namespace std;
struct record {
string C0;
string C1;
string C2;
};
int main()
{
Forum: C++ Jun 13th, 2006
Replies: 9
Views: 1,469
Posted By Nedals
1. Yes. You will need an Application Programming Interface (API). I believe it comes standand with mySQL and the same is probably true for Oracle.

2. The compiled file will generate (build) the...
Forum: C++ Apr 12th, 2006
Replies: 7
Views: 1,279
Posted By Nedals
Get first entry and put it in a variable 'smallest'
qty = 0; // why zero here and not at the beginning? food for thought.
Now loop though each entry comparing new entry to smallest.
Remember to...
Forum: C++ Mar 31st, 2006
Replies: 8
Views: 7,089
Posted By Nedals
Thanks for the link. Bookmarked :)
Forum: C++ Mar 31st, 2006
Replies: 8
Views: 7,089
Posted By Nedals
Just for my own education in C/C++.

In the above thread, the OP has used recursion to insert an item in the list. (I assume that his 'professor' gave the OP this structure).

Is this an approved...
Forum: C++ Mar 31st, 2006
Replies: 12
Views: 1,665
Posted By Nedals
>> NOPE NOT BROKEN I DONT CARE IF I USE CORRECT GRAMER ONLINE AS LONG AS IT GETS THERE....
And statements like this will not bring you much help, either.
Forum: C++ Mar 30th, 2006
Replies: 5
Views: 1,328
Posted By Nedals
Did you try 'google'?
Forum: C++ Mar 30th, 2006
Replies: 16
Views: 1,999
Posted By Nedals
n = k*3;
In this line, what are the values of n and k ?
Did you put that line in the right place?
Forum: C++ Mar 29th, 2006
Replies: 8
Views: 7,089
Posted By Nedals
I don't know exactly what your professor gave you, but the code you have is probably not
going to get you where you want to go. You don't really need the 'findNode' or 'getRoot'
functions...
Forum: C++ Mar 21st, 2006
Replies: 14
Views: 1,994
Posted By Nedals
A Classic example of where to use pseudo code....
see discussion at http://www.daniweb.com/techtalkforums/thread41482.html

PSEUDO CODE
// Input file names
=> code here
// define an array to...
Forum: C Mar 21st, 2006
Replies: 18
Views: 2,361
Posted By Nedals
>> ... but it sounds a lot like you're asking for complete code from someone who's having trouble coming up with any code at all.
Perhaps I am not being clear...
There is NO CODE in pseudo code....
Forum: C Mar 21st, 2006
Replies: 18
Views: 2,361
Posted By Nedals
Perhaps a constructive discussion... :)

Based on your statement of 'Yesterday, 9:06AM'
>> If you want help with the logic, you'll need to be more specific about the problem (ie. what input you'll...
Forum: C Mar 21st, 2006
Replies: 18
Views: 2,361
Posted By Nedals
>> It's "pseudo code"
Thanks for the spelling correction.
>> that's what he had at first.
I don't agree with that statement. Pseudo code, by my definition, should give a verbal flow of the...
Forum: C Mar 20th, 2006
Replies: 18
Views: 2,361
Posted By Nedals
Perhaps a little nudge in a slightly different direction.

Specify the problem in sudo code - and don't worry about actual code yet.
This applies to any computer program in any language.
...
Forum: C++ Mar 12th, 2006
Replies: 2
Views: 11,427
Posted By Nedals
This assumes that, if the list already exist, it is in 'name' order

...
temp->next = NULL; // add this to temp just after cin

curr = head;
if (curr == NULL) // empty list
{
head = temp;
}
Forum: C++ Mar 5th, 2006
Replies: 2
Views: 11,947
Posted By Nedals
Not exactly. The event handler would be similar to that second bit of code I include above.

I can include, in my MESSAGE MAP,
ON_WM_KEYDOWN()

and write a handler function..
void...
Forum: C++ Mar 4th, 2006
Replies: 2
Views: 11,947
Posted By Nedals
In CApplView I create a Login Form.

void CApplView::Login_Entry(CDC *pDC) {
..
if (pUserid == NULL) {
pUserid = new CEdit;
pUserid->Create(WS_CHILD|WS_VISIBLE|WS_BORDER,...
Forum: C Feb 18th, 2006
Replies: 4
Views: 2,086
Posted By Nedals
std::string s1="HelloWorld";
if(s1.find("World",0) != std::string.npos) {
printf("found");
}
else {
printf("not there");
}
Forum: C Feb 7th, 2006
Replies: 5
Solved: MFC Listener
Views: 3,260
Posted By Nedals
A few hours of testing and head scratching, and I came up with a solution. Pretty simple really...

When the device closed it's socket, it attempted to reconnect but the skt_client socket was...
Forum: C++ Feb 7th, 2006
Replies: 3
Views: 1,349
Posted By Nedals
int main() {
do {
...
your code
...
} while (not some exit condition);
return 0;
}

OR
Forum: Software Development Job Offers Feb 7th, 2006
Replies: 2
Views: 2,177
Posted By Nedals
I have someone working on it right now. If there is a problem in the future, I'll contact you.

Thank's for the response
Forum: C Feb 6th, 2006
Replies: 9
Views: 2,424
Posted By Nedals
Post what you have so far and you will be much more likely to get some help.
Forum: C++ Feb 4th, 2006
Replies: 7
Views: 1,392
Posted By Nedals
Do you know what 'pass a parameter' means?

//If you have this function...
int printGrade(int grade) {
if ( grade >= 90) {
...
}
}

// 'grade' is a parameter that is passed into the...
Forum: C Feb 4th, 2006
Replies: 9
Views: 2,424
Posted By Nedals
Or you could use a linked list.
Forum: C++ Feb 4th, 2006
Replies: 5
Views: 1,329
Posted By Nedals
Try something like this....

<<sudocode>>
first = true;
In a for loop, using the char array...
if (first) {
build a string of chars in 'temp1' until there is a space
and set first =...
Forum: C Feb 3rd, 2006
Replies: 5
Solved: MFC Listener
Views: 3,260
Posted By Nedals
I'm back :)

I incorporated the above into my program and it worked - well almost.

The computer (listener) is connected to a device that closes it's socket after an idle time of 15 sec to save...
Forum: C Feb 3rd, 2006
Replies: 5
Solved: MFC Listener
Views: 3,260
Posted By Nedals
My solution - with help from my Google search results...

// Initilize the Listener - (in OnNewDocument for me)
BOOL CMFCSocketDoc::OnNewDocument() {
..
// #include "MFCServer.h" in .doc.h
...
Forum: C Feb 3rd, 2006
Replies: 5
Solved: MFC Listener
Views: 3,260
Posted By Nedals
Thanks WolfPack. That kind-of worked. The while loop causes the, I'm busy 'hour-glass' to sit on the page but I am getting results.

It dawned on me that a listener is simply a server without a...
Forum: C Feb 2nd, 2006
Replies: 5
Solved: MFC Listener
Views: 3,260
Posted By Nedals
I'm attempting to build a simple listener, preferably without a Thread, but I am lost.

I have a working listener in 'console' mode but I need one that works with MFC. It should stay open...
Forum: C++ Jan 16th, 2006
Replies: 5
Views: 2,676
Posted By Nedals
:) I posted an almost word-for-word response on another board.

OK! This is what drives me nuts!
I have a 'Socket class' with a public variable - CString response.

In a 'Control class' I have...
Forum: C++ Jan 15th, 2006
Replies: 5
Views: 2,676
Posted By Nedals
Ancient Dragon,
I'm having problems and really need some help. Would you have any interest in helping me out off-line? Please PM me and, if yes, I'll explain further.
Forum: C++ Jan 15th, 2006
Replies: 5
Views: 2,676
Posted By Nedals
I probably did not explain that right...

The problem comes when I want to call 'aFunction()', which uses varB internally, in the CProjectView::Handler(). I get a compile error if aFunction is...
Forum: C++ Jan 15th, 2006
Replies: 2
Views: 1,749
Posted By Nedals
This is a good read....
http://tangentsoft.net/wskfaq/
Forum: C++ Jan 15th, 2006
Replies: 5
Views: 2,676
Posted By Nedals
I have limited experience with Object Oriented coding but not programming in general.
Here is a stripped down version of my code. What I'm trying to do is set a variable declared in...
Forum: C++ Jan 14th, 2006
Replies: 3
Views: 16,631
Posted By Nedals
Linked list are typically used to work with data structures.
Access to items in the list is controlled by pointers.

This is a very simple example to construct a linked list. You will need to do a...
Forum: Software Development Job Offers Jan 13th, 2006
Replies: 2
Views: 2,177
Posted By Nedals
Looking for help to develop a small Windows based application using Visual C++ (MFC).

I'm looking for someone local (Pleasanton, CA) because the program testing will interface with some specilized...
Forum: C Jan 9th, 2006
Replies: 11
Views: 2,180
Posted By Nedals
Ancient Dragon...
I'm also new to C++. Could you expand on a couple of items in your response..

...the program sets all elements of the rolls array to 0 (there is a much easier way to do that...
Showing results 1 to 40 of 43

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC