49,766 Topics

Member Avatar for
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
82
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
161
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
127
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
111
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
175
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
6K
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
86
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
94
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
216
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
876
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
220
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
265
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
341
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
739
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
233
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
100
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
258
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
160
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
191
Member Avatar for Panathinaikos22

C/C++ have Datagridview-Listview-Calend and all those controls? i think c/c++ have only simple controls like msgbox/textbox/&button i have spend lot of hours to find something for win32 but nothing... exist smthing or i must draw byself :-s thats crazy...

Member Avatar for Moschops
0
130
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
385
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
226
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
87
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
Member Avatar for ksm092

Hi, I have two classes in two separate .cpp files. I obtain a string using cin and then I need to use this string in a method in a separate class. If that makes sense.. [CODE]class HomePage{ static void HsubmitChangeDutyRequests(string) { Duties::submitChangeDutyRequests(string);} }[/CODE] [CODE]class Duties{ static void submitChangeDutyRequests(string); }[/CODE] This …

Member Avatar for vijayan121
0
330
Member Avatar for WolfShield

C++ was once the King of programming. It would crush any competitor! But, now it seems that C++ is getting less popular. New programmers are rushing to easier to learn, higher level, programming languages (e.g. Java). And with Microsoft coming out with C# which is gaining popularity (even though it …

Member Avatar for Netcode
0
1K
Member Avatar for maybnxtseasn

Because references always “point” to valid objects, and can never be pointed to deallocated memory, references are safer to use than pointers. Can anyone give an example of this? this doesnt make sense. couldn't you just do [CODE]int& function() { int variable = 3; return variable&; }[/CODE] looks deallocated to …

Member Avatar for vijayan121
0
101

The End.