48,986 Topics

Member Avatar for
Member Avatar for Zvjezdan23

In my math programming class I have an assignment to find the slope intercept formula (y2 - y1) / (x2 - x1) which is the m of the formula y = mx + b. I have to find 2 slope intercept equations and make an if-statement or multiple if-statements to …

Member Avatar for Fbody
0
300
Member Avatar for lawnmoler

Okey i know that im going to start hate with this thread, but which one should i choose to learn looking from complexity view? Which api is more "easy" or user-frendly to learn? And why so? I wana know what you think.

Member Avatar for Zssffssz
0
92
Member Avatar for ntrncx

I do an exercise and i wrote this code to test templates [CODE]#include <iostream> #include "Date.h" #include "Time.h" using namespace std; template <typename T> bool compare(T first,T second){ if (first==second) return true; else return false; } template <class T,class X> bool compare(T first,X second){ if (first==second) return true; else return …

Member Avatar for ntrncx
0
219
Member Avatar for lAmoebal

I need to create a basic program for work that utilizes the snmpget command. It needs to be usable in both windows and solaris as our clients use both. What's the best snmp library to use? I tried to download a number of them but I can't even get the …

Member Avatar for vijayan121
0
3K
Member Avatar for ratatat

help guys, this code tells me that the sleep identifier is not found. has anyone got an idea on how to resolve this?

Member Avatar for ratatat
0
79
Member Avatar for James19142

in this program i'm writing, i seem to keep getting rounded down values. At first i though it was because i was declaring my return variable as an integer so i made sure i wasnt doing that and changed all number variables in the class to doubles to ensure i …

Member Avatar for Fbody
0
158
Member Avatar for alexander1s

am writing a program that will count the votes for those whom are agree and desagreed, so i would have Yes and no, now i have to have a file in wordpad, in other to import the information that was saved, to make the program to run, but i have …

Member Avatar for James19142
0
124
Member Avatar for Zvjezdan23

This is code for the algebraic slope formula (y2 - y1) / (x2 - x1). I need help. My error is: Uninitialized variable formula2 is being used without being initialized. Can anyone help me??? [CODE]#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; int main() { int formula1[2]; …

Member Avatar for Fbody
0
107
Member Avatar for hiimhenryyy

Hi, This is my first post here at DaniWeb. I've been using it as a resource through out my assignments. I am truly eager to learn C++, but I've gotten stuck. All I am trying to do is average an array of numbers, but I haven't been able to even …

Member Avatar for MonsieurPointer
0
165
Member Avatar for sugantha

hello friends, I am doing a bank management system project where I have to conect a database done in MS Access(.mdb extension) to the C++ code...I ve never learnt much about databases and this is the first time I m using Access...so I d be grateful if anyone could explain …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for mrnobody

Hi guys, Lets say I create a class pointer in my program, do I need to delete the pointer I created before I close the program? Or will the pointer be deleted automatically whenever I exit the program? Will it cause the PC memory to be locked up if I …

Member Avatar for MonsieurPointer
0
85
Member Avatar for terey

[CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char ch; do{ cout<<"press Q or q to quit,press any key to continue : "; cin.get(ch); cin.ignore(); if(ch!='Q'&&ch!='q') cout<<" you want to continue?\n"; else cout<<"you press q to quit "; }while(ch!='Q'&&ch!='q'); ; system("pause>NULL"); return 0; }[/CODE] my …

Member Avatar for gyme20
0
91
Member Avatar for anandhan1089

Actually i am doing project in MFC. There i need to get the menu string in the right click context menu .please help me.. I am waiting .. thank you.

0
38
Member Avatar for Labdabeta

I am extremely confused about libraries and have been having trouble understanding them with google. Basically I want to create a library so that I can use a bunch of functions from another file without all of the libraries' contents being seen. EG: library code: [CODE]class test { private: int …

Member Avatar for Labdabeta
0
213
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Member Avatar for James19142
0
855
Member Avatar for thenewbiecoder

[url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number …

Member Avatar for vijayan121
0
216
Member Avatar for twicepipes

I know how to use the compare functions to check if a string is exactly the same as another but I wasn't sure if there is an easy way to go about checking if a string contains any sequence of A through F. Can I add up the memory values …

Member Avatar for vijayan121
0
259
Member Avatar for altXerror

ok. so i'm having trouble with the Windows API. i'm just learing how to use it, so i don't know much about it. anyways, i just wanted to create a window and have it displayed then catch the exit message and close, but VC Compiler is throwing errors. 1>c:\users\furrix\documents\visual studio …

Member Avatar for altXerror
0
330
Member Avatar for literal
Member Avatar for shmamy

Okay so someone may have already posted something like this but my assignment is due in like 4 hours and don't have time. So here is the problem and my code. My problem that I am having is that it only works for single words. Not whole sentences. I need …

Member Avatar for shmamy
0
734
Member Avatar for Labdabeta

Is there a way to make a class visible only from within another class. i.e: [CODE]class myclass { private: class anotherclass { //stuff that only can be used from within a myclass function void dosomething(); float dosomethingelse(); }*anotherclasses; int numanotherclasses; public: int createanotherclass();//creates anotherclass object, puts it in the array …

Member Avatar for mike_2000_17
0
230
Member Avatar for monkeybut

I have a quick question, I have to read in data from a file that has names and grades in it, I must take the names and store them in a string array and the grades and store them in a 2-d array. Any pointers on how to determine what …

Member Avatar for monkeybut
0
98
Member Avatar for Braindead90

I am working on creating a linked list to connect the previous value number (or string) to another value I asked this question before I am just guessing I did it completely wrong since no one responded. So what would be the best way to start the function. I need …

Member Avatar for sfuo
0
255
Member Avatar for PapaGeek

I have a program that relies on file timestamps that works fine in XP but fails in Windows 7. I ran the following test in Windows 7: Create go.bat to look at all 3 file timestamps: [CODE]@echo off dir /tc test* | find "test" dir /tw test* | find "test" …

Member Avatar for PapaGeek
0
158
Member Avatar for HungMob

Hello again! I was given an assignment the other day in C++ and I was suppose to use the counter and add a sentinel so the program knew when to stop. Instructors directions: "The file for this assignment reads a sequence of positive integers from a file (2 3 5 …

Member Avatar for HungMob
0
188
Member Avatar for Süspeñce

[CODE]//I make program of infix to post fix xpression plz tell me waht wrong with my code //some it true result for arthematic opertaors b,w two oprend but with more then it does //not provide valid output plxxxxxxxxxxxx help me #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<string.h> int presidence( ); void infixToPostfix(char *); …

Member Avatar for Süspeñce
0
368
Member Avatar for _dragonwolf_

Ok, I have been trying to work this thing for a week. It is a program that is supposed to read from 2 files (.dat) and write to a third file (.dat) then update one of the first files. i.e. read oldmast.dat read trans.dat compare data write data and changes …

Member Avatar for vijayan121
0
223
Member Avatar for hao001

[CODE]#include<iostream> #include<cmath> using namespace std; void getChoice(int& choice); void getInput1(double& foot, double& inche); void getInput2(double& meter, double& cm); void convert1(double foot, double inche, double& meter, double& cm); void convert2(double& foot, double& inche, double meter, double cm); void showResult1(double foot, double inche, double meter, double cm); void showResult2(double foot, double inche, …

Member Avatar for hao001
0
2K
Member Avatar for Isaac1024

C++Syntax[CODE]#include "stdafx.h" #include<iostream> #include<cstdlib> #include<ctime> using namespace std; int main() { srand(time(0)); int arr[10]={0}; for(int i=0;i<10;i++) { arr[i]=rand()%50+1;} for(int i=0;i<10;i++){ cout<<arr[i]<<endl; } return 0; }[/CODE] I want to use the * to display the output, what I should improve?

Member Avatar for Fbody
0
86
Member Avatar for gchaim

Hello I need to create a graphic simulator for MIPS CPU, something that will show the structure of the CPU, and when getting a text file with MIPS code- it will show how does each command executed through all the CPU parts. However, i have never worked with grpahics, i …

0
46

The End.