49,761 Topics
| |
I need help to create **Process monitoring program.** (services, system, and user-run processes) If any **software/Process** wants to run, this program display it's details and ask user to **allow or block software/Process.** Also display List of All Running Processes with it's address(process related with perticular software) with **stop/block process** option. … | |
Hello, it's me again, and I'm stuck again. I need to enter the highest and lowest temperatures for seven days, which the program will then store in two columns, with the average of each column stored in the bottom row. I got it working and everything, except that it'll only … | |
Depreciation is the cost of value of an item offer a number of years from the time of purchase. Another method of calculating depreciation is the straight line method. If value is the purchase price of the item and it’s to be depreciated over n years, then value is the … | |
so i created a client server program using tcp that works fine. but now i want to use broadcasting (which uses udp) so i'm changing to change my code but i keep running into problems. when i run my code the error message "ERROR binding: 10047" and that error means … | |
Before I go any further, I just want say yes, this is the same code from my last post, and no this isn't a repost. Now that I know that I need a loop in my code, all I need to know right now is where to put the loop. … | |
Hi , Working on VC++ 2012. "error LNK2005: "class std::basic_ofstream<char,struct std::char_traits<char> > Createonly_logs" (?Createonly_logs@@3V?$basic_ofstream@DU?$char_traits@D@std@@@std@@A) already defined in UtilityFunctions.obj I have defined a text file (for writing the output) under LogFiles.h #include <fstream> using namespace std; ofstream Createonly_logs("E:\\MyProj\\MTEST\\CreateFile_logs.txt"); I have created three .cpp under the project and all these cpp uses … | |
Hello, I am working on an assignment. I am given the code below. I am trying to figure out what the line directly below is doing. Is this a functor? I am getting a compiler error saying the compiler expects a ';' before the '*'. I've searched for functor examples, … | |
Heyy could any1 plz suggest sum really tough programs dat can be written in c++?? | |
hi, Menu on a Windows Form for Dev C++ hi, i have devc++ version 5.2.0.3 after compiling this prog i got following message: 110 46 C:\Users!__DEVCPP PROJEKTE\menu.cpp [Error] cast from 'HMENU {aka HMENU__*}' to 'UINT {aka unsigned int}' loses precision [-fpermissive] 100 56 C:\Users!__DEVCPP PROJEKTE\menu.cpp [Warning] deprecated conversion from string … | |
I am trying to create a graph from a 2d matrix of booleans. When the index [i][j] == 1, I need to create a link or edge from node[i] to node[j]. I am doing some thing wrong. I have created a class file with a struct node and some basic … | |
Hi all, Using my application I've found a file path anywhere on my machine and store the full path in a CString variable. That is full path, like this, [CODE]G:\Work On\CPP\001_002_003.txt[/CODE] What I want to do is, find the name of the file(without the extension), 001_002_003 according to my example. … | |
This is a bit of homework I have to do for my C++ class. I was suppose to add 11 as the pay code and 23 as the pay rate, but during the debug test when I type in 11 it doesn't display $23 like it's suppose to. What am … | |
I have to write a program that creates a binary search tree from a file and output it and several other requirements. One requirement that I cannot figure out is how to find the search cost for each node. These are the instructions I was given Calculate the search cost … | |
Is there a way to have multiple search entries for one TreeView, each for a different column, or having one search entry handle all columns? The effect I'm looking for is (for example) having three columns, and thus typing into three search boxes to narrow down to the results that … | |
Write a MIPS code for the following C program to run perfectly in Qtspim??? Void main () { Int array[10]; For (i=0; i<10; i++) { array[i]=compare(num, i);} } Int compare (int a, int b) { If (sub(a, b,) >=0 ) return 1; else return 0; } Int sub ( int … | |
Hi, I know C, C++, and Java (all basic knowledge, no GUI idea in C++ or C) and now I want to make a *desktop application with GUI in C++* but no idea about how to make it, google didn't help me a lot! Can someone please give me the … | |
I am doing huffman coding and I have made the tree. Now I am required to traverse the tree to create bit strings associated with the characters. Then I will put the bit string and char into a map to use with encode/decode. I have been working on this for … | |
Hello everyone. I would like to know if it is possible to double buffer a .png image using GDI+ Can anyone help me? Below is the code I used to display a png image with alpha transparency, however, I do not know how to double buffer it! Please help. DrawPng … | |
mu visual studio 2010 is showing a LINK : fatal error LNK1168:not opening exe file for writing | |
Ok, so occassionally as I write my code, a non-printing character is insterted... according to code::blocks this character is actually two characters (\302 and \206). I have done much searching to solve the problem, but a solution has eluded me. I tried using the windows console type command on a … | |
when i debug this code it is giving few errors whats wrong in this code can anyone please help out :S #include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #define T_SEMICOLON';' #define T_LPAREN'(' #define T_RPAREN')' #define T_ASSIGN'=' #define T_DIVIDE'/' #define T_WHILE 257 #define T_IF 258 #define T_RETURN 259 #define T_IDENTIFIER … | |
| I want to Implement a STACK class using linked structure to store the following information about students: i. Registration number of the student ii. Name of the student I want to Write client code, such that based on the registration number of the students, Then I want to Retain only … |
Hello, I'm having some problems with inheritance. The following code compiles and runs as expected: It prints out Hey: 1, since SomeFunction returns true. #include <iostream> class Base { public: virtual bool SomeFunction(const int& A) const = 0; }; class Derived : public Base { public: void hey() const; //bool … | |
I can't seem to find the error in this code. I don't know if I constructed the codes correctly, assuming that the error is corrected, I could get the correct value? /* Function for Right Triangle */ #include<stdio.h> #include<conio.h> #include<math.h> #define p printf #define s scanf double rightTriangle(double x, double … | |
I'm making a class for boolean expressions, a simpler version of bool. I need three operators, one for AND, one for OR and one for NOT. I can easily make **+** for OR, by overloading, but how can i declare **.** for AND and **'** for NOT? Can i even … | |
Hi, I am trying to create a c++ program for counting the number of occurrences in an array using 2 1-D arrays such that the first array contains the elements and the second array gives the count of the number of occurrences of each element in the first array. Unfortunately, … | |
Hi so I have to create a group of postings into a linked list with arrays not strings.I'm just not sure how to go about getting/converting this information into a linked list? class Posting { public: Posting(); //Constructor ~Posting(); //Destructor void user_input(char * input,char* &response); void create_posting(); void display_posting();//displays the … | |
After I enter 'y' and the loop repeats, I get "Would you like to search by item or expiration date? Would you like to search again?" It seems like it's ignoring the getline and if/else statements...why?? And how can I fix this? Thanks in advance, everyone. #include <iostream> #include <cstddef> … | |
How can I install gcc 4.7.2 for codeblocks that supports both 32 and 64 compilation? If I install the x32 bit compiler: x32-4.7.2-release-win32-sjlj-rev10 it will compile with -m32 compiler switch but give a bunch of linker errors for -m64 If I install the x64 bit compiler: x64-4.7.2-release-win32-sjlj-rev10 it will compile … | |
Hi everyone, I am having a difficulty with some code and I hope here somebody who is more expreinced from me can help me. I am having a program that reads a file store the data as objects in a vector. For example in the file i have : Once … |
The End.