|
|
Actually, that's a good idea... I haven't created an article here in awhile...
I did so... here is a link to the article:
Determine Time Since Last Logon[^]
modified 8-Jun-21 10:11am.
|
|
|
|
|
thanks for sharing that.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Declare a structure "Student" which contains the following information:
1
i.
ii.
Student ID
Grade for 5 subjects
2. Write a function to
i
search for a Student ID and if exists write "Found", otherwise, write "Not Found"
Write the Student found (ID and Grade) to a file with file name "StudentFile.txt
In the main (0 function:
3.
i
ii.
ii.
Read the data of an array of 10 students from the user (i.e., keyboard)
Read from the user a student ID to search for
Invoke the function search to search for the Student ID read by the user
|
|
|
|
|
Well, it likes like your homework. But what is your "urgent question"?
|
|
|
|
|
|
MAHMOUD ALI Jun2021 wrote: DO YOU KNOW ANSWER ??
To WHAT question? 
|
|
|
|
|
|
See #11 here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Yes, I know the answer. So do many, many other people here.
You have to write some code to accomplish what is specified in this "assignment".
Pay special attention to the first part of that answer. "YOU have to write some code..."
Nobody is going to write this for you.
|
|
|
|
|
Drawing on another user's recent comment...
Do you think Usain Bolt got fast by having other people do his training?
|
|
|
|
|
Your question was so urgent you forgot to even ask it. 
|
|
|
|
|
I want through parameterizing a SQL query in my C++/MFC app using recordset parameterized class, but I am facing a problem with passing a UNICODE characters in parameter value
|
|
|
|
|
Zouaoui Billel wrote: but I am facing a problem Sorry, but there is no way we can guess what you mean. Please provide proper details of the problem, including the data you are using and the actual errors or messages that you see.
|
|
|
|
|
So you kept both your code and the problem description a secret.
How do you expect anyone to help you?
|
|
|
|
|
Building a ( static ) library.
If we agree that DECLARATION are in header file and DEFINITIONS are in C++ .cpp source file
what is a correct term for
#include such library header file in code so the source code using the library have what ?
"reference point" ?
(and how does it correlate with linker ?)
|
|
|
|
|
Haven’t seen any standard term. If you need such term, I’d rather go for “inclusion point”. The word “reference” has many uses and adding another one is not going to make things clearer.
Anyway it has no direct relation to the linker. It is purely a textual inclusion and it will go through preprocessor and compiler before.
Mircea
|
|
|
|
|
So a combination of Richard's
library
client
with "client's inclusion point #include "
would make some sense.
|
|
|
|
|
Sorry, I don't understand what you try to accomplish. Are you trying to document how your library has to be used by a client program? In this case, I've seen instructions like:
"... place an include directive to <cool_library.h> in your program"
or even:
"... place an include directive to <cool_library.h> before the include directive for <not_so_cool.h>"
If you are looking for something else, try to explain more.
Mircea
|
|
|
|
|
I was trying to find if there is a specific term for the process , not just "place include..."
Something similar to
declare function
define function
relation.
I guess there is none.
However years ago there was a book of C code standards - something "ANSI C ..." maybe it is in there.
I used to have a copy.
|
|
|
|
|
It is still not clear what you mean by "the process". There is no process as such, you just need to ensure that the compiler can find all declarations and/or definitions of any functions that you are trying to use. Either within your source file or in an associated header.
|
|
|
|
|
The source code may be using definitions of classes/functions etc in an external library. The header file provides this information so the compiler can create a reference in the object code. Such references will then be used by the linker to fix the links to a library or other object code module. For example given the followin directory structure:
PROJECT
LIB
CLIENT
you might have:
void Foo(char* name);
void Foo(char* name)
{
printf("Hello, World! A message from %s\n", name);
}
#include "../LIB/Library.h"
int main(int argc, char** argv)
{
Foo("fred");
return 0;
}
Does that make sense?
|
|
|
|
|
It does not clearly define what I was asking for.
But I sort of like the relation "definition"
library
client
|
|
|
|
|
Member 14968771 wrote: It does not clearly define what I was asking for. Maybe because your question did not clearly define what you were looking for.
|
|
|
|
|
I Successfully converted standard Qt project to a library.
I build a library "lxxx".
I "added"the library to a Qt SUBDIR project - same as another project under SUBFIR
management. Builds fine.
When I try to use the library, by adding ONE if the library include file It "links" fine to the library include file BUT fails to locate / link with
another include in the "source " file.
I am not sure about terminology but basically
in header file of code I want to be linked to a library
I add # inlcude a header file / source of the library to be used.
The build process gets the #include of the library but fails to find the
first "#include in the library header file.
Since I build the library using SAME include scheme OUTSIDE SUBDIRS project I suspect I need to add another path .
How do I determine what is the actual #include directive path so I can correct it?
'If my post does not make sense , please ask for clarification before responding.
|
|
|
|