868 Posted Topics
Re: Hello Misko, Welcome to Daniweb. I am sure fellow members will find your wide experience in the IT field very useful. Hope you make a lot of friends here. | |
Re: Hello mbr2. Welcome to Daniweb. You were an early starter compared to me. I had my first computer lessons in late 2000. Programming is one of the easiest areas of technology where you can develop with relatively low cost. Make the most of daniweb. Good luck. | |
Re: cut it out guys. let bygones be bygones. if a particular post is helpful it is worth a lot to the person who wanted help. It is also acceptable for geeks to relax in here, and browse other forums and learning from the helpful posts in the process. If you … | |
| |
Re: [quote=DavidRyan;248329]I haven't had much use of C/C++, but I noticed that the getHoursFromUser function has been declared as void. Void may work differently with functions in C/C++, but a void method in Java is one which does not return a value. Is that relevant?[/quote] It is not a problem. Since … | |
Re: Actually the memory location for [inlinecode]a[/inlinecode] does get modified in Visual C++. But this is implementation specific. It may not be so in gcc. But the catch is that Visual C++ never uses the value stored in [inlinecode]a[/inlinecode]'s memory location. It is allowed to do so by the C++ standard. … | |
Re: What are these conditions? Can these conditions change while the program is running, in other words depending on user input? or just when the program is compiled? Can you give a code example? I don't think that you can change it at run-time. To change it at run-time, you should … | |
Re: Isn'T it obvious? [code][COLOR=Red]ifstream[/COLOR] infile("data", ios::in); string name, surname; while (infile >> surname) { infile >> name; [COLOR=Red] Person temp(infile);[/COLOR][/code] [code]Person(std::[COLOR=Red]istream[/COLOR]&);[/code] istream and ifstream are not the same. So the compiler does not know a proper constructor. | |
Re: Why can't you just use the = operator? [code]//Accessor Function to read integer input into age variable int& Person::read_age(int& a) { a = age; return a; }[/code] | |
Re: You obviously didn't look hard enough. [URL]http://www.cplusplus.com/ref/ctime/difftime.html[/URL] [URL]http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=66&rl=1[/URL] | |
Re: Try [code]int a = b - -c;[/code] Stop the course which asks silly questions like this. | |
Re: Selecting "Hide Icons" does not affect the right click. It takes time for the Desktop to refresh, and after that the right click works as usual. Try pressing F5 a number of times and then right click the desktop and see. If that does not work, try restarting and right … | |
Re: Are you using [code]#include <gdiplus.h>[/code] or [code]#include "gdiplus.h"[/code]. Have you installed the Platform SDK properly? Have you set the Include files Directory of your compiler correctly? | |
Re: That means you are not linking the libraries with the object code for those functions. [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/83f1e307-095b-4d27-a3ec-ff4aa22f471a.asp"]RTFM [/URL]and find the required library. | |
Re: Hello Ranga. Welcome to Daniweb. Don't worry, this is the right place to be. You will surely get a lot of help, from the Java experts in the [URL="http://www.daniweb.com/techtalkforums/forum9.html"]Java forum[/URL]. | |
Re: [quote=aqab;247099][B][COLOR=blue][/COLOR][/B][B][COLOR=blue]wonderful In-laws[/COLOR][/B] [/quote] Forget the child. How do you develop this? | |
Re: [quote=ishwar;246736]Listen, I don't speak c++, I don't really care what you c++ rabis debate about evry day. In school we do Pascal , Pointers don't come into play until 1st year university.[/quote] So what are you trying to tell us? If you expect C++ to behave like Pascal, you better … | |
Re: Look for the API called FindFirstFile. | |
Re: [quote=hollystyles]And someone has just voted beer[/quote]judging from some recent posts, I'd say that was dave. :twisted: | |
Re: No I don't think so. The windows firewall is external to your program. So unless you have administrative rights to unblock the port that the program needs to update itself, the Windows firewall will block it. Sometimes antivirus programs also may block certain ports. | |
Re: Explain these two lines to me. [code] unsigned long v0 = *((unsigned long*)(buf+n)); unsigned long v1 = *((unsigned long*)(buf+n+4));[/code] During the first iteration of n, ie n =0 ; the above code becomes [code] unsigned long v0 = *((unsigned long*)(buf)); unsigned long v1 = *((unsigned long*)(buf+4));[/code] Now, the length of … | |
Re: You can either use [code] char filename[MAX_PATH]; GetModuleFileName(NULL, filename, MAX_PATH);[/code] or the command line passed to WinMain [code]int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance, [COLOR=Red]char* command_line[/COLOR], int show_command)[/code] | |
Re: [quote=hay_man;246195]any idea to to divide the string say into blocks of 4 characters?[/quote] Use [URL="http://www.cppreference.com/cppstring/substr.html"]std::string::substr()[/URL]. | |
Re: Yes I think you are over-reacting a bit. Nobody thinks that you are an idiot, and if there is anyone who thinks that, it is (s)he who is the idiot. Walt's advice is spot on. Summarizing, the basic idea is that this Forum is a "give and take" forum. You … | |
Re: What is the problem? We don't have the time to run and debug your program. Narrow down the function that is wrong and post it. Post properly formatted code. | |
Re: properly indent when you are posting bulk code. That makes reading easier, and will give you a better chance of expert help. | |
Re: [quote=ganeshprasad_7;245628]hi everyone, i am facing a problem in developing a software of pc maintainence, i require a source code to detect the ports of a general purpose processor [/quote] Explain a bit more. What do you mean by ports? The I/O ports or the network ports like FTP, TelNet etc? … | |
Re: [quote=aman_dce;243856]hv alrdy n colg hd lik smthn tim sm1 advicd 2 mak cald u bt [/quote] What language is this? Indian? It sure is funny. Anyway just in case you didn't know, this is an English language forum. | |
Re: [quote=cscgal]I'm the Queen of DaniWeb, aren't I?[/quote] God Save the King | |
Re: [URL="http://www.daniweb.com/techtalkforums/post240801-7.html"]link[/URL] | |
Re: [code] do { flag=arrange(array,num); }while( flag==-1); [/code] This is the only place where flag is being used. So isn't it simple? flag is used to store the result of arrange and arrange is called while the flag is -1. Now go to the arrange function. It returns -1 when two … | |
Re: [quote=Gunner54]that takes time and money the ony thing i didnt understand was words... period and semicolon[/quote] If you are not ready to spend time and money to educate yourself, why should we spend ours trying to educate you? [quote=Gunner54]-.- I Cant Help A Habbit I Have[/quote]When you are adviced for … | |
Re: [quote=Grunt]Everything you can do in C++ you can also do in C.[/quote]Are you sure? You can create a class in C++. Can you create a class in C also? | |
Re: Explain a bit more. How is the program outputting the data now? Is it a console applitcation or a GUI application. If the output is currently displayed in the console, the easiest method is to redirect the output to a text file. If it is a GUI application, you will … | |
Re: Hello zsix. Welcome to Daniweb. You are absolutely right. This is a very good place to learn C/C++. Check out the C/++ forum if you ever need to. There is a very good team of knowledgable posters who know every nook and corner of C and C++ ready to help … | |
Re: [quote=dilip.mathews]Hi Guys, I still didn't get answer for my question. By reference to pointer I mean this [code]int * & x;[/code] Here x is a refernce to a pointer [/quote] This code is illegal because a reference has to be initialized not assigned. There are exceptions but in this case … | |
Re: If you want to build from scratch, read the [URL="http://www.w3.org/Protocols/rfc2616/rfc2616.html"]HTTP Specification[/URL] and implement it in C. If you want a C API library, check [URL="http://curl.haxx.se/"]curl[/URL]. | |
Re: Use string::c_str(). It gives a constant C style character string. Use this when a datatype of LPCTSTR is needed. Now your second question does not need an answer. | |
Re: First of all, I must say that your question is really very well presented, complete with the compiler versions, operating system versions, full code and error report. It really makes answering it easy in our part. if only all the posts were formatted like yours... Remove the line [code]#include "stdafx.h"[/code] … | |
Re: Inline code tags are used when you want to have pieces of code appear within a sentence. When posting large pieces of seperate code use code tags. | |
Re: Hi. welcome to Daniweb. [quote=ViVA]As a computer fan,[/quote] You must be really close to the CPU.:cheesy: | |
Re: [quote=hollystyles]I'm guessing here, but I recon they cancel each other out. All directives run on each instance, so: Preprocessor finds the first instance of a and runs ALL directives on it a = b = a Then it finds the first instance of b and applied all directives to it … | |
Re: Please describe your problem a bit more. What are the errors that you are getting? | |
This is a modification of the [URL="http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm"]Add Command Prompt Here[/URL] tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory. This … | |
Re: try this <<<<<<<<<<Class.h>>>>>>>>>> [code] #pragma once class Class { public: int get_return(int a,int b,int (*compare)([COLOR=Red]int, int[/COLOR])); int Rxgmoral(int a,int b); void Fun(); };[/code] <<<<<<<<<Class.Cpp>>>>>>>> [code] #include "Stdafx.h" #include "Class.h" int Class::get_return(int a,int b,int(* compare)([COLOR=Red]int, int[/COLOR])) { return (compare(a,b)); } int Class::Rxgmoral(int a, int b) { return a+b; } void Class::Fun() … | |
Re: Please format your code properly.[LIST] [*] Increase the Tab settings [*] put braces even for the places where there is only one statement inside a for loop[/LIST]When debugging problems, you don't debug all of the functions at once. Check each function one by one. If there is a debugger in … | |
Re: [quote=blazinking][B]I wouldnt just copy[/B] somones work cause thats not me ... thats one of the reasons y [B]i didnt post up the code cause i didnt need someone to solve this for me[/B] i just needed a boost in where to look into ... anyways [B]thx for the info help[/B] … |
The End.