49,765 Topics
![]() | |
I'm asked to Write a program to create a calendar and I have a problem with defining the first day in every month whether it's satureday or sunday, etc can anyone give me a hint to fix this BTW, I'm not allowed to use functions :/ I'm disappointed about my … | |
Thanks in advance for anyone who can a)understand this, and b) give any help in my struggles. We are coding in C++, have half a circle, starting a a certain point (e.g. (0,-310)) and finishing at a certain point (0,310). We have the radius, and we have the equation X^2 … | |
This is homework. I have been tasked with creating a new dialog in WinMerge that provides line stats for every open file. It should show total lines, lines modified and lines deleted. I am working on implementing the total lines part. I have already created the dialog, a class for … | |
Hi there. I am trying to create C++ code that allows User Input in selecting a variety of fields, then it will calculate many different angles and show the users the results, as well as a graph. However, it has been suggested to us by our lecturer that it may … | |
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, … |
The End.