Forum: C Jun 18th, 2006 |
| Replies: 2 Views: 1,637 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 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 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 #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 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 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 Thanks for the link. Bookmarked :) |
Forum: C++ Mar 31st, 2006 |
| Replies: 8 Views: 7,089 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 >> 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 |
Forum: C++ Mar 30th, 2006 |
| Replies: 16 Views: 1,999 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 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 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 >> ... 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 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 >> 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 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 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 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 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 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 Views: 3,260 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 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 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 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 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 Or you could use a linked list. |
Forum: C++ Feb 4th, 2006 |
| Replies: 5 Views: 1,329 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 Views: 3,260 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 Views: 3,260 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 Views: 3,260 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 Views: 3,260 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 :) 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 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 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 This is a good read....
http://tangentsoft.net/wskfaq/ |
Forum: C++ Jan 15th, 2006 |
| Replies: 5 Views: 2,676 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 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 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 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... |