16,004,540 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by jeron1 (Top 200 by date)
jeron1
15-Aug-24 11:09am
View
I read "You normally shouldn't set the /scanDependencies option in the Visual Studio development environment. The compiler doesn't generate object files when you set this option, which makes the link step fail and report an error." at the following link
https://learn.microsoft.com/en-us/cpp/build/reference/scandependencies?view=msvc-170
I would scour this, and the other compiler options, and see where it takes you.
jeron1
15-Aug-24 11:06am
View
I would agree.
jeron1
15-Aug-24 10:42am
View
Is 'scanDependenciesx64' a valid flag?
jeron1
2-Aug-24 10:55am
View
ring == for loop?
jeron1
11-Jul-24 10:14am
View
What is ARPlines? Maybe you expand more on what exactly you are expecting to happen during/after the connection.
jeron1
20-Jun-24 10:25am
View
Do you mean 'appear' instead of 'compare'?
jeron1
13-Jun-24 16:16pm
View
There is nothing here at this point that is assembly related.
jeron1
11-Jun-24 10:05am
View
Does this solve your issue or is this an addition to the original question?
jeron1
10-Jun-24 13:20pm
View
Here's a link to simple program, to display the words "Hello World". Take a look at it and see how it differs from what you have in terms of your main() function.
C++ "Hello, World!" Program
[
^
]
Then take a look at how functions work,
C++ Function (With Examples)
[
^
].
jeron1
10-Jun-24 10:03am
View
Sample code that works?
jeron1
16-May-24 12:34pm
View
OK you can take a look here for how functions are used.
C++ Functions
[
^
]
I suppose you could use the code inside the function, in your main(). Nevertheless, do you know what to do (is required) after reading data from the file?
jeron1
16-May-24 11:14am
View
Have you ever used a function?
jeron1
10-May-24 10:24am
View
Are there range restrictions on h1,h2,and h3?
:edit:
:sigh: I didn't realize how old this was, sorry.
jeron1
23-Apr-24 13:47pm
View
Nice! +5
jeron1
22-Apr-24 13:15pm
View
Great! Perhaps you could flag this thread as 'answered'.
jeron1
22-Apr-24 11:19am
View
Maybe this link will help?
https://stackoverflow.com/questions/2770855/how-do-you-scale-a-cbitmap-object
[
^
]
jeron1
16-Apr-24 10:14am
View
Have you tried casting it? Something like,
int x = (int) dwValue;
jeron1
10-Apr-24 10:07am
View
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdlgitem
GetDlgItem() takes up to 2 input parameters, you have none specified. It returns an HWND which you are not looking at.
jeron1
8-Apr-24 16:58pm
View
Perhaps have them use the 'intermediate' void* variable technique mentioned in that link.
jeron1
8-Apr-24 15:44pm
View
Maybe this link may shed some light.
FAQ C Language Question 4.9
[
^
]
jeron1
21-Mar-24 17:06pm
View
That's a BIG difference, to omit the parenthesis.
jeron1
20-Mar-24 14:14pm
View
Is it possible to step through the code using a debugger?
jeron1
20-Mar-24 11:36am
View
And... is there a question?
jeron1
19-Mar-24 16:53pm
View
What are the types of the other variables?
jeron1
19-Mar-24 16:40pm
View
Is 'k' being displayed or 'formula' or something else?
jeron1
19-Mar-24 16:36pm
View
What value is displayed in the Result line?
jeron1
13-Mar-24 12:00pm
View
maybe something in this thread might be useful?
https://stackoverflow.com/questions/12991034/monitoring-an-audio-file-to-check-when-its-opened-by-another-program
jeron1
6-Mar-24 13:43pm
View
Then perhaps do what Richard suggests, add a bunch of logging type output, denoting the values of variables of interest at specific points in the code to see where it may be failing.
jeron1
6-Mar-24 13:07pm
View
That fact that it compiles doesn't mean anything if the logic is not correct. Is it possible to just post code relevant to the problem?
jeron1
6-Mar-24 12:49pm
View
Stepping through the code using a debugger yields no clues?
jeron1
23-Feb-24 12:27pm
View
https://en.wikipedia.org/wiki/Regular_expression
jeron1
5-Feb-24 10:22am
View
What if the string only contains zero's? "000" for example.
jeron1
26-Jan-24 16:57pm
View
ok, is there a question?
jeron1
26-Jan-24 11:20am
View
while(T--) {
int N;
cin >> N;
vector<int> h(N);
for(int i=0; i<n; i++)="" {
="" cin="">> h[i];
}
I believe N and h will go out of scope once you exit this while block, I am surprised this compiles.
jeron1
12-Jan-24 11:20am
View
What leads you to think it isn't right?
:edit: Looks like the GetItemIndexRect() would be used for subitems.
jeron1
6-Jan-24 12:07pm
View
This is true.
jeron1
12-Dec-23 12:51pm
View
Possibly do a binary search on a sorted list, then delete?
jeron1
24-Nov-23 11:33am
View
"The program doesn't do anything" is not a lot to go on. Can you set breakpoints and step through the code? or add lots of printf()'s? Is your list being populated properly? Problem in the felsazabadit() function?
jeron1
3-Nov-23 10:35am
View
p starts out is a pointer to array (ray) index 0. You then set the contents of the memory that the pointer points to, to the contents of ray[2] which is 6. Your pointer p is still pointing to array index 0 at this point. You print the contents pointed to by p (array index 0) which is now 6, you increment p so it points to array index 1, which contains the value of 4.
jeron1
27-Oct-23 10:18am
View
"If you repeat those steps using pen and paper you will see why"
Wise words indeed. :thumbsup:
jeron1
25-Oct-23 10:11am
View
What's wrong with the answers you received the first time you asked this?
https://www.codeproject.com/Questions/5369930/How-to-implement-the-deep-copy-constructor-using-p
jeron1
23-Oct-23 18:05pm
View
Try what is on following link.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4747?view=msvc-170
jeron1
19-Oct-23 10:08am
View
It would be pretty quick to enable the linker option and see if it helps the problem.
Are you working with large enough data to account for the exception?
jeron1
10-Oct-23 15:54pm
View
Maybe take a look at functionality included with this header.
https://cplusplus.com/reference/cmath/
jeron1
26-Sep-23 16:25pm
View
Can any other application display this in color?
jeron1
14-Sep-23 12:44pm
View
Does the TRACE output show that m_thirdDlg is valid?
Also, have you called AfxInitRichEdit() before trying to do this?
jeron1
13-Sep-23 16:02pm
View
Has thirdDlg been created when you call
m_thirdDlg.GetWindowRect(&rectSecondDlg); ?
jeron1
18-Aug-23 10:09am
View
Possibly setup a timer that triggers an interrupt at the proper time or have no interrupts and simply poll the timer status bit in your while loop and alter your LED outputs when the timer status flag is set, all the while still being able to poll for a button press?
jeron1
15-Aug-23 10:57am
View
It looks like they want to calculate the answer to
12+(n-1)*8
in a function and return that calculated value from the function, using C++ or Java, based on your tags.
jeron1
25-Jul-23 9:58am
View
Pretty sure I do as well.
jeron1
17-Jul-23 11:00am
View
Bookmarked, looks interesting thanks for posting the link!
jeron1
13-Jul-23 10:39am
View
Any particular reason why?
jeron1
13-Jul-23 10:23am
View
Couldn't you use PostMessage or SendMessage and send the WM_RBUTTONDOWN event to the appropriate window?
jeron1
23-Jun-23 13:37pm
View
Then use a write method that can save binary data.
For example;
https://www.tutorialspoint.com/reading-and-writing-binary-file-in-c-cplusplus
jeron1
23-Jun-23 12:05pm
View
That might be pseudocode, but this is a C++ forum. You're assumption on the output of the pseudocode might be correct or it might not be, depending on what 'display' means.
jeron1
23-Jun-23 11:47am
View
Is it a C++ quiz?
jeron1
23-Jun-23 10:19am
View
:joke:
Change Tennessee to Cleveland and see what happens.
jeron1
22-Jun-23 16:23pm
View
Is the data stored in buf a null terminated string?
jeron1
22-Jun-23 10:06am
View
I am not sure I understand your explanation of the issue, but I don't see where you're looking for the "L3 End of record", the point at which I believe you want to process the received information. Also, if your data is received in multiple packets the buffer will probably be overwritten on receipt of the 2nd and 3rd.... packets, though there is not enough detail to know.
jeron1
15-Jun-23 12:23pm
View
Follow our ancestors.
chimpanzee, became the 22nd most successful money manager in the USA
[
^
]
jeron1
12-Jun-23 11:18am
View
How does that change anything?
jeron1
12-Jun-23 10:02am
View
Nice!
jeron1
8-Jun-23 10:10am
View
Perhaps in the OnInitDialog() method of your dialog you could use something like,
GotoDlgCtrl(GetDlgItem(IDC_YOURBUTTON)); // where IDC_YOURBUTTON is the resource ID for your button
jeron1
9-May-23 15:25pm
View
Care to share what error is?
Edit: Returning 1 from the main() signals an error, try returning 0 instead.
jeron1
9-May-23 11:15am
View
You have not asked a question. Also, that is some funny looking assembler.
jeron1
8-May-23 11:07am
View
LOL Truer words were never spoken.
jeron1
27-Apr-23 15:40pm
View
Can't imagine that this will compile, and not sure what the question is but there should be a comma instead of a period in the following;
static bool f(int q. int64_t y) // <== should have comma
Also there is a space between 'size' and 'of' in the following;
static const int N = sizeof(my_data)/size of(*my_data);
jeron1
26-Apr-23 11:59am
View
What you have posted will not compile, so start a little simpler with a Hello World program (see the first link). Take note some of some of the syntax differences between the example and your attempt.
https://www.tutorialspoint.com/learn_c_by_examples/hello_world_program_in_c.htm
Then move on to something a little more complex, like the following link, and do the same thing. Hopefully things will get a little clearer.
https://www.tutorialspoint.com/c_standard_library/c_function_getchar.htm
jeron1
28-Mar-23 11:14am
View
Have you tried setting the third parameter in SetRange() to true?
jeron1
21-Mar-23 11:27am
View
If you have an update, then update the original post, and perhaps explain what the update does. You can use the green 'Improve Question' option.
jeron1
15-Mar-23 10:18am
View
Not sure if this will help but generally, initializing an array looks something like,
int anArray[] = {1,2,3,4};
Your parms array initialization seems wrong.
jeron1
13-Mar-23 10:04am
View
Is there a specific question? Where are you having problems?
jeron1
10-Mar-23 15:47pm
View
The comparison operator used in the if statement should be == not =. The single equal sign is an assignment operator, which is setting the z variable to whatever is after the equals sign. Also, the result of the division is going to be an integer (no fraction), perhaps not what you wanted.
jeron1
10-Mar-23 13:33pm
View
You're probably going to have to add the implementation of the queue class to the original post, use the green 'Improve question' option.
jeron1
3-Mar-23 10:44am
View
Sounds as though you need to talk to your instructor.
jeron1
2-Mar-23 18:02pm
View
Unfortunately, this thread started over 12 years ago, but sage advice anyhow. :)
jeron1
1-Mar-23 11:02am
View
Is it any different if you specify Serial.begin(9600); like the example you got this from?
jeron1
28-Feb-23 11:59am
View
It doesn't really matter what the algorithm does as the code is not compiling, you have a number type mismatch errors and syntax errors that need to be resolved first. Start with the first warning/error and work your way down.
jeron1
24-Feb-23 10:23am
View
Generally start with the first error, go to that line and the lines near it and see if there is a syntax error. Hint, most lines require a semicolon at the end.
jeron1
11-Feb-23 10:27am
View
Nice, +5!
jeron1
16-Jan-23 11:51am
View
Modify your original post and add your code that is causing this error.
jeron1
10-Jan-23 11:32am
View
Can you give an example of what you mean?
jeron1
6-Jan-23 11:27am
View
Perhaps you could post one of the 'every possible ways' that you have tried, then ask a specific question. Folks here will be more than willing to help.
jeron1
5-Jan-23 11:41am
View
Is your input file opening?
input = fopen("argv[1]","r"); // <== was is input after this line?
jeron1
23-Dec-22 15:19pm
View
Deleted
You'll need some curly braces in there.
int main()
{
// do stuff
return 0;
}
jeron1
19-Dec-22 11:29am
View
That's the follow-up question, "Can you convert this Java code to c++?" LOL
jeron1
13-Dec-22 19:28pm
View
Just click on the 'Improve Question' button and add or change your original post to maybe clarify what you are trying to do.
jeron1
13-Dec-22 16:40pm
View
Sorry, I have no idea what you are looking to do, which is why I suggested showing what is it that you want displayed (output) and entered (input) and the order that it happens, at the console. Maybe someone could figure out what it is that your goal is.
jeron1
13-Dec-22 11:12am
View
Maybe edit the original post to show a simple example of what you would like to see (both inputs and outputs) at the console.
jeron1
12-Dec-22 13:34pm
View
At this point, based on your attempted use of arrays and their indexes, and the the fact that the code does not compile, it seems a bit beyond your current level. Try simplifying things, maybe make your class simpler, write a loop that populates an array with data, then write a loop to output the data. Then try doing these things in a function.... build slowly from simpler to more difficult. Perhaps learn how to use a debugger, you will learn a LOT using a debugger.
jeron1
7-Dec-22 12:44pm
View
Before accessing elements of the vector using [] brackets, make sure that whatever is within those brackets is valid. I'm talking about the first couple line of the compute() method.
jeron1
7-Dec-22 12:06pm
View
You don't need an array size variable for use in the compute() method, you have a vector, use it's size() method.
jeron1
2-Dec-22 15:40pm
View
If you can't solve it on paper, there's no point trying to code it. Also, I'm guessing googling the subject would yield lots of examples.
jeron1
2-Dec-22 15:24pm
View
Can you do these things on paper?
jeron1
29-Nov-22 11:04am
View
So you've gotten it to work using another method, but it was too slow?
jeron1
29-Nov-22 10:11am
View
Not a lot of code there. I'm guessing you're referring to CListCtrl? If so, perhaps check this article for adding checkboxes.
https://www.codeproject.com/Articles/13586/Using-Check-Box-in-List-Control
jeron1
25-Nov-22 17:53pm
View
Please just update your original post and not create a new 'Solution'. Post the code that you have written, along with a specific question. The 'if' statement you've posted is wrong for multiple reasons. Read your book and at least try to emulate the syntax.
jeron1
23-Nov-22 10:20am
View
How about you just check the integer range, isdigit() expects a character that is casted to an int you don't have characters. I am not going to speak to your use of goto's and the structure of your logic, as I am sure others will.
if ((select >= 1) && (select <= 6))
jeron1
23-Nov-22 10:07am
View
First, you should update your original post with this attempt and not create a 'solution'. Second. you define an int variable 'bins', that are are treating like an array of int's, that can't work. If you want an array of integers declare and initialize one;
int bins[5] = { 0, 0, 0, 0, 0 };
jeron1
22-Nov-22 13:02pm
View
You'll need variables to hold the counts (5 of them). So you iterate through the array, calculate the percentage for a given grade, then increment the appropriate count variable based on that percentage, perhaps using if, elseif, else. When complete, print the appropriate label for example "1.0" or "1.5", then create a loop (a for loop maybe) based on the associated count variable to print the x's.
jeron1
22-Nov-22 12:35pm
View
What is your question?
jeron1
18-Nov-22 12:13pm
View
What is it doing (or not doing) versus what is expected?
jeron1
10-Nov-22 14:15pm
View
Could you solve this on paper?
jeron1
10-Nov-22 13:19pm
View
You could try removing the comma between the %d's if the scanf call.
jeron1
10-Nov-22 11:34am
View
You are executing every if statement, eventually you always get to the last one, if d is not equal to 8, you will perform the else statement, and print "Invalid value". You could just return after printing "American masculine citizen", "American feminine citizen", or "Foreign masculine citizen". There are several other ways to handle this as well.
jeron1
9-Nov-22 16:00pm
View
Update your original post to reflect the current state of the non-working code.
jeron1
7-Nov-22 13:37pm
View
Maybe use the (absolute value) abs() function in your printf statement?
printf("Suma cifrelor este %d",abs(sum));
jeron1
4-Nov-22 16:44pm
View
put all the vars at end of the print f ... just keep their type "%s"
So we are adding a %d to that as well.
jeron1
4-Nov-22 11:59am
View
"just keep their type "%s" "
But variable 'umur' is declared as an int.
jeron1
4-Nov-22 10:52am
View
You should have your format string, then your variables when using the printf() function
try something like,
printf("\n%s\t |\t %s |\t %d", k1.idpegawai, k1.nama, k1.umur);
jeron1
28-Oct-22 13:54pm
View
True, but at some point you are counting on a return value;
p= prime(n,n/2); // you are expecting a return value here
if(p == 1) // in order to test it here
{
printf("Yes");
}
jeron1
28-Oct-22 10:18am
View
prime() is supposed to return an int, nothing is being return right now.
jeron1
21-Oct-22 12:41pm
View
Have no idea what this has to do with c++, perhaps the text is in an image?
jeron1
15-Oct-22 11:43am
View
Something like this?
https://www.raylib.com/examples/text/loader.html?name=text_input_box
jeron1
14-Oct-22 9:59am
View
In addition to what Greg stated, also post the exact error you are seeing.
jeron1
7-Oct-22 17:28pm
View
"does not display every time I run my code" as in the word "Quick" is not displayed? or displaying the wrong values, or something else. Is your quickSort() executing the return statement as it should? Running with a debugger would tell you pretty quickly.
jeron1
7-Oct-22 12:17pm
View
isdigit() is looking for a character type, try changing 'value' and 'matrix' (I am guessing matrix type is int) to be type char, and see what happens.
jeron1
6-Oct-22 13:26pm
View
What is your question?
jeron1
4-Oct-22 13:27pm
View
Seems a bit harsh, Richard posted no code at all.
jeron1
29-Sep-22 18:25pm
View
Nice!
jeron1
29-Sep-22 10:44am
View
Do you hit a breakpoint, set in that function, every time you click on that button?
jeron1
26-Sep-22 17:20pm
View
Verify that you're sending the proper data on the proper interface first. Wireshark is a great tool to see what's going on sending and receiving with your network ports.
jeron1
26-Sep-22 10:14am
View
You have not asked a question.
jeron1
21-Sep-22 17:40pm
View
if( digit == total)
You're comparing digit (which is a pointer) to total (which is an int).
jeron1
21-Sep-22 15:46pm
View
You could try changing the scanf line to this.
scanf(" %d", &size);
jeron1
19-Sep-22 10:12am
View
Part of your problem is you haven't asked a question.
jeron1
16-Sep-22 10:02am
View
It doesn't work this way, post your code and try and ask specific questions. Folks here won't do your work for you.
jeron1
14-Sep-22 18:06pm
View
Possibly try using getline() instead of cin >>, I believe cin will return when the first whitespace character is encountered, whereas getline will retrieve the entire string up until the newline '\n' character.
jeron1
14-Sep-22 9:59am
View
In addition to what CHill60 stated, the OP is tagged as 'C' not 'C++'.
jeron1
12-Sep-22 15:50pm
View
Try adding a second backslash character, an escape character,
"\\a"
https://en.cppreference.com/w/cpp/language/escape
Oi, misread the OP.
jeron1
1-Sep-22 10:39am
View
Imagine speaking to a tutor or other instructor about your problem, is that what you would say?
jeron1
30-Aug-22 9:58am
View
So you want someone here to explain code you wrote?
jeron1
18-Aug-22 17:19pm
View
Just a note, if a function does not return a value it should have 'void' as the return type. Compilers might assume a return of void if no type is there, but for readability sake similar to;
void postfixeval()
{
...
}
jeron1
18-Aug-22 13:41pm
View
I would update your original post with your current version of code, then try and give a specific scenario with a specific input, and the desired output, and the actual output that you are seeing. There are many people here that are willing to help if given proper data to work with.
jeron1
18-Aug-22 13:08pm
View
It shouldn't compile, you call
prefixeval(prefix); // calling with input parameter 'prefix'
but that method implementation takes no input parameters.
int prefixeval() <== No input parameters specified and should return an int
{
..... /// also I don't see where an int is being returned
}
jeron1
16-Aug-22 17:36pm
View
Sorry that description does not bring any clarity, at least for me, on what it is that you are looking for.
jeron1
15-Aug-22 16:18pm
View
42
Well someone had to say it. :-)
jeron1
8-Aug-22 15:20pm
View
Very pragmatic, nice! :-)
jeron1
1-Aug-22 10:50am
View
You're returning a a value from usart_read1() but not using it. If you are using interrupts, does the interrupt flag need to be cleared manually, so it can fire again? How deep is the UART buffer?
jeron1
19-Jul-22 12:10pm
View
Ha! Classic tune!
jeron1
19-Jul-22 10:57am
View
Does 'row with title' mean column headers?
jeron1
18-Jul-22 13:04pm
View
"we cannot use rand or srand and loop for this program"
Why did you use a do-while loop then?
jeron1
18-Jul-22 11:37am
View
You should really update your original post with this data. In the do-while loop, on the second iteration, you're using f1ptr even though you've previously called fclose(f1ptr).
jeron1
14-Jul-22 10:42am
View
CScrollView Class | Microsoft Docs
[
^
] Maybe using something like this?
jeron1
13-Jul-22 16:00pm
View
So what's the point in more than one iteration?
jeron1
13-Jul-22 15:53pm
View
'temp' gets overwritten every iteration through the for loop.
jeron1
11-Jul-22 18:14pm
View
Sounds like Method #2 in this link.
3 Ways to Convert from Decimal to Binary - wikiHow
[
^
]
jeron1
8-Jul-22 11:57am
View
Deleted
What if flag is false?
jeron1
30-Jun-22 13:55pm
View
The topic certainly may be important, it's the calling somebody out that seems totally unnecessary.
"Or are you simply posting that question to add to your total posting count? I am gessing that you are."
jeron1
30-Jun-22 12:01pm
View
Something tells me nv3 doesn't really care about this 9 years later.
jeron1
28-Jun-22 20:08pm
View
Greg Utas wrote: "What amazes me is that some C and C++ programmers think it's brilliant to save a few keystrokes, so they write crap like this."
:thumbs up: Indeed.
jeron1
28-Jun-22 20:07pm
View
Deleted
Greg Utas wrote:What amazes me is that some C and C++ programmers think it's brilliant to save a few keystrokes, so they write crap like this.
:thumbs up: Indeed.
jeron1
28-Jun-22 17:55pm
View
They are local to the Add() function with no scanf, as are the arrays.
jeron1
28-Jun-22 14:00pm
View
In your Add() function you declare
int p,q,x,y,i,j;
but never initialize them, therefore your for loops will run an unknown number of times.
jeron1
28-Jun-22 12:09pm
View
~ is the One's complement operator, (inverts all the bits).
https://www.tutorialspoint.com/cprogramming/c_bitwise_operators.htm
jeron1
16-Jun-22 11:58am
View
Nothing, it doesn't compile.
jeron1
14-Jun-22 10:27am
View
The fact that there was no attempt (effort?) shown makes me think that there will also be no attempt to understand the answer. Maybe I'm wrong...
jeron1
1-Jun-22 13:06pm
View
LOL
"I used to debug image analysis algorithms with printfs..."
You were not alone.
The bad old days.
jeron1
1-Jun-22 13:05pm
View
Yes, it should have been, my apologies.
jeron1
1-Jun-22 10:08am
View
Deleted
LOL
"I used to debug image analysis algorithms with printfs..."
You were not alone.
The bad old days.
jeron1
26-May-22 13:48pm
View
Do you have a question?
jeron1
25-May-22 16:24pm
View
Can you solve this on paper?
jeron1
20-May-22 15:42pm
View
Care to elaborate?
jeron1
5-May-22 11:28am
View
Move the cout line after you've done your counts, not before.
jeron1
4-May-22 18:33pm
View
Also, you should take a look at your test for consonant, what if the letter is 'e' for example. It's between 'a' and 'z', and you're incrementing the consonant variable.
jeron1
4-May-22 13:16pm
View
Looks like you are outputting the counts before you try and calculate the counts.
jeron1
2-May-22 12:23pm
View
Can't say I saw that one coming...
jeron1
27-Apr-22 14:26pm
View
The Add and Assign (+=) operator.
totalmoney += add[i].total;
equates to
totalmoney = totalmoney + add[i].total;
jeron1
26-Apr-22 14:04pm
View
You tagged this with C++...
jeron1
20-Apr-22 16:45pm
View
"i already tried but dont get it"
What did you try?
You should show your code.
jeron1
20-Apr-22 12:20pm
View
Read the contents of the file into memory, remove the word (or character) from memory, then write the modified memory to the file.
jeron1
19-Apr-22 12:14pm
View
You haven't shown any code so no one can comment on it. Can you solve this on paper?
jeron1
14-Apr-22 15:54pm
View
ANSI vs Unicode issue?
jeron1
14-Apr-22 13:43pm
View
Well said. :thumbsup:
jeron1
12-Apr-22 14:19pm
View
Is there a specific question?
jeron1
9-Apr-22 19:32pm
View
Is there a specific question?
jeron1
5-Apr-22 18:10pm
View
"Let's work to help developers, not make them feel stupid. "
Near as I can tell, he did. Asking for clarification as Richard did is a necessity in many instances, and having more specific data would allow more eyes to see what you are seeing, and may ultimately lead to a solution. I saw no disparaging remarks in his response, no need to get defensive.
jeron1
5-Apr-22 13:44pm
View
" for the question i ask"
and your question is?
jeron1
5-Apr-22 11:46am
View
Your question is?
jeron1
5-Apr-22 11:38am
View
You have not asked a question. Just an observation, one would generally call srand(...) before rand(). What are you attempting to do with the '% 100' portion of your rand() statement?
jeron1
4-Apr-22 20:13pm
View
:thumbsup: Indeed!
jeron1
1-Apr-22 12:14pm
View
"&& (pw,password)==0"
What is "(pw,password)" supposed to do? Do you want a second string compare? If so, do a second string compare;
if(strcmp(id,username)==0 && strcmp(pw,password)==0)
jeron1
25-Mar-22 12:04pm
View
Deleted
Start looking at your braces near the top of your while(t==true) statement (which could just be while(t)).
jeron1
24-Mar-22 11:02am
View
It might help if you add the node struct definition to the original post.
jeron1
24-Mar-22 10:42am
View
Maybe you could explain what exactly doesn't work, and post a small, testable example of the file data.
jeron1
21-Mar-22 16:35pm
View
I don't see any code. What do you want to display and where do you want to display it?
jeron1
21-Mar-22 11:22am
View
You should post the entire code if possible.
jeron1
21-Mar-22 10:18am
View
You have not actually asked a 'C' question, do you have one?
jeron1
18-Mar-22 10:34am
View
scanf("%s",&name[20]);
You sure about that?
jeron1
16-Mar-22 13:11pm
View
"float=0.0;" is not a valid statement (no variable name), probably will not compile.
add a variable name, something like,
"float abc = 0.0;"
jeron1
15-Mar-22 11:21am
View
That's 0xC0000005 Access Violation, probably an invalid pointer. Can you step through that function, and see what line it fails on? (assuming it fails in that function)
jeron1
10-Mar-22 11:56am
View
I would initially 'brute force' it, then try and optimize only if necessary. If you have specific questions during that process, feel free to ask them here.
jeron1
10-Mar-22 10:14am
View
You have not actually asked a question, do you have one?
jeron1
28-Feb-22 20:02pm
View
Comparing doubles can be tricky, take a look at,
https://www.tutorialspoint.com/what-is-the-most-effective-way-for-float-and-double-comparison-in-c-cplusplus
For a way to method to compare.
jeron1
24-Feb-22 13:43pm
View
I know (hence my vote), but for some reason, I am feeling somewhat optimistic today. A condition I am not used to, trying to remedy as we speak.
jeron1
24-Feb-22 13:03pm
View
What is the C question?
jeron1
17-Feb-22 17:45pm
View
Just a guess, looks like you're setting a CBrush object to MenuInfo.hbrBack, the doc says it should be an HBRUSH.
MenuInfo.hbrBack = *NewBrush;
You could try using the HBRUSH operator something like;
MenuInfo.hbrBack = (HBRUSH)*NewBrush;
Not sure if it will help.
jeron1
9-Feb-22 9:58am
View
Agreed.
jeron1
8-Feb-22 13:34pm
View
That's actually a scary thought, basic std::vector operation altered by the size and/or complexity of the project? Doesn't sound right to me.
jeron1
7-Feb-22 17:22pm
View
'typo' D'oh! Good catch.
Show More