432 Posted Topics
| |
Hi mobile devs, I am noob to android studio and java, but have some c and c++ basic knowledge so not noob to programming in general. However I am also noob to all aspects of form design. I did not write title of Question singular because I'm pretty sure I'll … | |
Re: There are many many ways, and in my opinion most depend on why you want to learn C++. If it is career learning then I would suggest you look for a class at a local college or school. If it is for hobby then I would suggest you search web … | |
Re: I believe it's your class you need to show. Also might be a silly question but what type of object is Dict? | |
Re: I think if you mention what compiler you use, might help someone who can properly answer your questions. To me they don't look like errors at all, warnings perhaps, but then there might be more code you are not showing. | |
Re: You can do it in whatever language you are good at and port it to C++. It will make more sense along the way. Don't get mad, get busy :) | |
Re: Looks like there is already a vector.h defined in your include path. Try calling it something else myvector.h, myvector.cpp. Same with class myvector | |
Re: I expect the error comes first from line #12. There is no ranum variable declared or accessible within the local scope of your loop() function. | |
Re: Not really much to look at there and a lot of missing code, but I can say that your top while loop never seems to be broken out of so your second while loop will never be entered into. If you want both of them to loop at the same … | |
Re: I don't have an answer to this but I believe the OP means if the content of a window holds an image or multiple images or some other content which is bigger than the physical window size (so I'd assume it would have scroll bars), then the size of the … | |
Re: Because your end variable is outside of the inner loop. Move it inside and do your calculations. | |
I installed Eclipse IDE along with SDK JDK. When I try to create a new Android project it does not appear in context menu. I uploaded image to show. http://s1.postimg.org/b1n9yag9r/ENP.jpg Also image of installed items in SDK manager http://s15.postimg.org/5g5tg2ue3/ASDKM.jpg I've never developed android and this is first time in any … | |
Re: If a reset does not work, try a system restore to a point before the problem occurred. | |
Re: I also believe x will remain in memory (a leak) until your program ends. | |
Re: At a glance I'd say take these calls `DisplayEmployInformation();` out of `ImplementCalculations` method and call it after. | |
| |
Re: int i = k, j = k, *a, b[100]; Is what I believe you want, since you are asking user for it's size. | |
Re: I'd say yes you are. You don't know the size of string you are copying into your buffers, so could cause overflow. Maybe strncpy would be better, I believe only amount of chars specified are copied, but you have to terminate it yourself. | |
Re: > but it is not run If you want better help, you should expand on that. Errors, warnings, outputs etc... | |
Re: I think after 48 hours you must have some sort of code. It will greatly benefit you if you show your two days worth of effort. ![]() | |
Re: How soon would you like it? | |
Re: Q1. (one solution) int lowest = a[0]; for (int i = 1; i < 100; i++){ if (a[i] < lowest){ lowest = a[i]; } } | |
Re: Only syntax error I see is int numStamps{4} = {0,0,0,0}; Should be int numStamps[4] = {0,0,0,0}; | |
Re: I've been interested in programming as a hobby for about 4 years. The first 6 months odd I used a scripting language called AutoIt, which despite its description on the home page is incredibly powerfull while stupidly easy with a huge catalogue of standard libraries to draw on. It was … | |
Re: Might be because there is no free(...) function defined. But to be honest, "function are not well working" is a little vague. | |
Re: I think first you must open a COM port to communicate with modem. Best you show how you do that first and you will get better help. Can you also tell why "only use standard Libraries"? | |
Re: What you are talking about is a c string or array of char. You need to loop through the char array checking each given char against its test char. basic example. char * given = "given"; char * test = "given"; int i = 0; while (test[i]){ if (test[i] != … | |
When I'm at a board index page or indeed posting a topic, the navigation tools are always visible (Hardware & Software, Software Development etc...) while I scroll down the page. That's great, I like it. While reading a topic however, those buttons/tools scroll away with the rest of the content. … | |
Re: Well for a start you have there an array of int not float/double. In main you have this statement a number of times. `myArray.theArray[size];` Think what exactly you expect to happen here? I believe nothing is happening, It's just saying "hey look at me, I'm an array index of a … | |
Re: If you are coding for windows then you might start with it's [WinINet Functions](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385473(v=vs.85).aspx). Like... InternetOpen InternetOpenUrl InternetReadFile etc... | |
Re: Not enough information. Please expand and show your efforts. | |
Re: How about [this](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question) article? | |
Simplified code snippet produces assertion string out of bounds error if I do not uncomment the if statement in main. using namespace std; size_t find_next_of(string & src, size_t pos) { //size_t tmppos; //if (pos != string::npos) { return src.find_first_of('a', pos); //} //return string::npos; } int main( void ) { string … | |
Re: [Here](https://www.google.co.uk/#q=What+are+the+main+differences+between+C%2B%2B+and+C) | |
Re: I don't know how to do this, so this wont be a great help but might get you started. I recall seeing a similar question asked regarding windows programming and as I recall the API "SetConsoleMode" was used in the answer. | |
Re: That's a lot of code to sift through, be more specific about the error and where it's coming from. | |
Re: I doubt it on windows, although an indicater of whether your file has been copied from somewhere else is the modification date being earlier than its creation date. | |
Perhaps mt eyes are missing something simple, but I cannot understand what is going on. The following code produces intellisense and compile error "error C2373: 'GetHwnd' : redefinition; different type modifiers" I have many functions in same manner, but this will not play ball. extern "C" HWND __stdcall GetHwnd(wchar_t *); … | |
Re: Probably need to add some info, os platform, bitness etc... To me, that looks like should create file in C root, but if windows and vista+ you must invoke admin to create file there. If I'm wrong, try ftream. | |
Re: If you use windows api... ShellExecute(NULL, "open", "Path\\file.mp3", NULL, NULL, SW_SHOWNORMAL); | |
Re: I don't believe the likes of these statements `cout << "Enter Your First Name: ";` are allowed within a structure. | |
I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will … | |
Re: while you are trying to compile, you get this error from the compiler? | |
Re: where does the code come from? what were you looking for when you found it? | |
Re: would you like fries with that? have you tried anything? | |
Re: There are no questions, just a request for people to do your homework for you. I suggest you post your own attempts at completing your own work before asking for help with it. | |
Re: int theint = -1; while (theint < 0){ //your code to collect data from user. } | |
Re: Here some code to get you started. int main(){ //your code here return 0; } Post again when you have something in main. Then people can help with any problems or specific questions about your code. |
The End.