Re: Error LNK1104 when debugging Programming Software Development by rproffitt Remember I can't check that your declarations are correct for the variables you are passing. -> File a ticket to their support. Re: How do I make my code jump back to a previous line? Programming by Dani Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :) Re: Error LNK1104 when debugging Programming Software Development by toneewa I like the challenge, but hate when errors like these occur. Check for a syntax error on line 2 in starter.h starter.h(2): warning C4067: unexpected tokens following preprocessor directive - expected a newline Hard to say without seeing code. Some cases m_hservice may require you to use the .lib file Advapi32.lib it if it isn't automatically… Re: Need Coding Help With A Project Programming Software Development by Enzo_3 I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out. Here's how I approached it using Python: from functools import reduce with open('… Re: Need Coding Help With A Project Programming Software Development by Reverend Jim I don't know why you would use `reduce` and `lambda` when you could just do sum(numbers) And the directive >You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. is self-contradictory as using `map` and `reduce` instead of `sum` does not simplify the design. It … Re: Any jQuery 4 users? Programming Web Development by jkon I'm still using jQuery, a very slim build. Our JS library/framework handles all the heavy lifting, including AJAX, WebSockets, logical events, data manipulation, and architectural events. Replacing jQuery would be relatively easy since we often use our own extended jQuery functions, like our custom 'onClick' (which has a different implementation in… Re: What are the key components of an effective email marketing campaign? Digital Media Digital Marketing by Advertising13 > I want to know about essential elements make an email marketing campaign truly effective and impactful Key Components of an Effective Email Marketing Campaign Clear Goal Setting: Begin with a specific objective, whether it’s driving sales, building brand awareness, or nurturing customer relationships. A well-defined goal guides the … Re: How do I make my code jump back to a previous line? Programming by trueriver updated my code... everything is fixed :) i made functions import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = True admin = False n = 0 n1 = 0 i = 0 #Create login if firstTime is True if firstTime is True: print("… Re: Question/Answering over SQL Data Using LangGraph Framework Programming Computer Science by Pelorus_1 Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever. Re: Need Coding Help With A Project Programming Software Development by Reverend Jim >Why put them down? Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a … Re: Need Coding Help With A Project Programming Software Development by Dani First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may … Re: Android Native - How To Request Notification Permissions Programming Mobile Development by Erussuhsh Hi I'm new android app development can you teach me Passing Functions as Parameters Programming Software Development by CombatJ I am trying to experiment with C++ to make the command prompt function like MatLab or Octave. This is a practice file I've been doing so I could pass functions as parameters to other functions. My problem is with this function call found in line 36 [CODE]compute(gset[function-1], input);[/CODE] This is supposed to be correct according to … Re: passing functions for later use Programming Web Development by Airshow Lifeworks, In Javascript, you can indeed pass a function, both as an argument or as a returned result. This is because Javascript functions are "first-class objects" (see [URL="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions"]here[/URL] for example). A more typical ajax caller might look something … Passing Class Objects, Instances Programming Software Development by Robert G Passing Class Objects, Instances -------------------------------------------------------------------------------- I have a project creating a cartesian point, then a line segment, then a line comparison. Each has its own class .h and .cpp file. Main just starts the program to CartesianPoint test, in the point class. My question is after I create… Passing Managed ByteArray to Native C++ DLL Programming Software Development by ziggystarman Passing Managed ByteArray to Native C++ DLL Anyone could help regarding passing ByteArray containing image data from axis camera to Native C++ DLL, Both compile OK, but DLL does not write ByteArray data to file?, just wondering if this is the correct way to pass ByteArray's to C++ DLL's here what we got... [CODE][VC++] typedef void(*… Passing value Programming Web Development by saravanan@daniw Passing value HI I have multiple row with hyperlink which is loop , when i click first row link ,a first row data has to retrive in the next page text box. Any idea from anyone. The example Page: Here when i click apply it has [url]http://recruitment.focusdev.co.uk/en/vacancies[/url] passing two different textbox values in two different textbox Programming Software Development by Ibadullah_1 passing two different textbox values in two different textbox Re: Passing Functions as Parameters Programming Software Development by mike_2000_17 So.. what's the compilation error message? At what line? I would probably try to pass in a function pointer instead, since "gset" is an array of function pointers, maybe try to define the "compute" function as: [CODE] double compute(double (*f)(double x), double i) [/CODE] The rest can remain unchanged. Also, as a matter of … Re: Passing Functions as Parameters Programming Software Development by CombatJ Thank you, mike, for your reply and your advice. :D Using the code that I posted, the compiler error is from line 36: invalid types 'double(*[2](double)[double]' for array subscript From what I know, since gset is an array I can simply use the function at an index function - 1. By making the function call: [CODE]compute(gset[function-1… Re: Passing Functions as Parameters Programming Software Development by CombatJ [QUOTE=mike_2000_17;1774495]So.. what's the compilation error message? At what line? I would probably try to pass in a function pointer instead, since "gset" is an array of function pointers, maybe try to define the "compute" function as: [CODE] double compute(double (*f)(double x), double i) [/CODE] The rest can remain … Re: Passing variable from function to function Programming Software Development by deceptikon Functions support parameters, which are designed for this exact purpose: int add(int a, int b) { return a + b; } int main(void) { int a = 5; int b = 2; int c = add(a, b); printf("%d + %d = %d\n", a, b, c); return 0; } This is basic C that *any… Passing by Values, Pass by Pointers for velocity and momentum Programming Software Development by itla I am not grasping C++ very well and I am having a hard time with this assignment: • Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your program should consist of four functions: Passing By Values (one), two Passing By … Passing Dynamic D2 Arrays in functions Programming Software Development by InfestedLawyer I've seen this problem a few times and I've tried what they've done. I am still not passing my Array correctly. I'm all templated up because of last files I have used for this program (Not in the code). If that could have something to do with it let me know. This is the base code I was working with. My Edited code became to tangled I couldn't … Passing values between functions Programming Software Development by Gresakl Hello folks I have a question to ask in regard to functions and passing information between them. I'm taking an problem solving class and well the instructor went from simple cout and cin to functions and has been really vague since the class is mostly on problem solving and not supposed to focus on C++. Yeah. Anyway my problem is just passing … functions Programming Software Development by poloblue Good Afternoon, The program that I'm doing with function doesn't want to run, the error that pops out is: 'std::basic_istream<_Elem,_Traits> std::operator >><std::char_traits<char>>(std::basic_istream<_Elem,_Traits> &,signed char *)' Here is the code and header file that I have so far: CPP FILE #… Passing Files to Functions Programming Software Development by Hopp3r Ok, so I've recently been learning to code in c++, but I'm getting a little confused on how you read files to functions. For instance, say that I have one file with a list of other files in it. The information within the second set of files (each file) contains an integer, a character and a double. The idea is to open the first file, loop through… passing linked lists through functions?? Programming Software Development by teppuus Hello, I am trying to call two functions: one that pulls data from a file and stores into a linked list, and one that displays this data to the screen. I pulled my code out of the functions and created a new file and included everything in the main function, and everything worked (the reading in of data and displaying to screen). Sooo...that led… Re: functions Programming Software Development by Schol-R-LEA OK, first things first: I know that you were probably instructed to put the functions in the header file, but in fact you only want the function *prototypes* declared there; you'll want to put the actual functions in a third file, which would then be linked into the program at compile time. #ifndef LAB_14_HEAD_H #define LAB_14_HEAD_H… Passing a Pointer to a function Programming Software Development by sree_ec I have a general doubt regarding passing pointers to functions... Suppose i have variable [code=c]tc_struct *ptr;[/code] and i want to pass it to a function to fill it. So i passed it [code=c]func(&ptr);[/code] and i received it in func as [code=c]void func(tc_struct** ptr1)[/code] Now again i want to pass this same pointer …