49,761 Topics

Member Avatar for
Member Avatar for Ripture

Hello all, I'm trying to learn how to make just a basic windows app with some buttons and text windows to make the programs I normally create and interface with through DOS a little more interesting. I'm following the tutorials at [url]http://www.winprog.org/tutorial[/url] and [url]http://www.functionx.com/win32/[/url] . I can manage to get …

Member Avatar for Frederick2
0
850
Member Avatar for vs49688

Hey, Does anybody know of a way to generate a random number without using srand(time(NULL)). I need it for a program I'm writing. srand(time(NULL)) is seeding it based on the computer's clock, but it's only accurate to the nearest second, so it's not fast enough. I've had to put Sleep(1000) …

Member Avatar for mrnutty
0
106
Member Avatar for Oritm

Code: [CODE]hWnd = CreateWindow( L"3ngine", L"lars", WS_OVERLAPPEDWINDOW, xPos, yPos, xSize, ySize, NULL, NULL, wc.hInstance, NULL );[/CODE] I want to make L"lars" variable. Searched on google, but i cant find the right answer. Is there a simple solution? thanks!

Member Avatar for Oritm
0
81
Member Avatar for xfngrn13

hello can anybody help me with my code? its about link list with selection sorting by last name i've tried to code this for 3 weeks but until now a can't get it to run please help me thank you in advance here's my code [CODE]void sel_sort() { node *temp, …

0
48
Member Avatar for bigskinny

i can't figure out where to even start with this. You will generate a set of data simulating (unrealistically) peak daily temperatures over a 100-day period. Your program will have the following parts and perform the following operations: (1) Two initially empty array with size 100 and data type "double". …

Member Avatar for redburn
0
115
Member Avatar for NinjaLink

Hey, In my duplicateWords function, I have been trying to figure out for a couple of hours how to [U]create[/U] duplicates for 4 different names in the list. Will someone help lead me in the right direction in how to complete this task? My program is reading in 50 words …

Member Avatar for NinjaLink
1
207
Member Avatar for ayan2587

thanx buddy... that was helpful... well i have one more doubt... the method you gave above is cool if i take input from stream... what if i pass a decimal or hexadecimal integer to a function from my main function..and then have to decide in that function whether the argument …

Member Avatar for ayan2587
0
115
Member Avatar for kaizen_duck

i want to create a program that can upload my new picture automatically. plez help..

Member Avatar for saphar
0
96
Member Avatar for scantraXx-

Hey guys. I need help on how to set a specific element that I insert into my vector of bool type :S [code] set::set() { cardinality = 0; setlist.resize(DEFAULTSIZE, false); } void set::insert(int x) { if (x >= 0 && x <= DEFAULTSIZE) { setlist.insert(setlist.begin(), 1, x); x = true; …

Member Avatar for dkalita
0
187
Member Avatar for jc101341

I am trying to get my homework assignment to work for class, but I cant seem to get it. Heres the assignment.

Member Avatar for saphar
-1
79
Member Avatar for gtey

I am trying to brush up on C++, which I haven't used in 5 years. I am having problems with the following. Does anyone see the problem in this code? ("sqr(x) is defined in macro.h) #include "stdafx.h" #include "macro.h" #include <iostream> #include <cmath> using namespace std; int main() { float …

Member Avatar for dkalita
0
90
Member Avatar for Aashath

HI guys I am using STL map in one of my project . I want to limit my size of my STL map size based on the use input , how do i do it . For Example : if the user types in 5 as input then my program …

Member Avatar for dkalita
0
96
Member Avatar for sDanyal

Please download the attachment to run this program OR To download this program paste the following address in browser address bar SNIP This program is written in Dev C++. If you are interested to view it's code then --mail me SNIP Please download this program and tell me by replying …

-1
48
Member Avatar for wyett

So, I am currently having 2 issues with my code. Problem 1: Any value entered in for the GPA that isn't a number causes an infinite loop. (example: enter in the letter X) Instead of giving an error message, it just goes into that infinite loop. [CODE]bool right = false; …

Member Avatar for wyett
0
155
Member Avatar for maddy1985

When the program is given a multicast address it should print the corresponding mac address, along with a list of the 32 overlapped multicast ip addresses. ./ipcalc.pl 224.1.1.1 255.255.255.255 Class D (Multicast) Address: 01-00-5e-01-01-01 Overlapped Addresses 224.1.1.1 224.129.1.1 225.1.1.1 225.129.1.1 226.1.1.1 226.129.1.1 227.1.1.1 227.129.1.1 228.1.1.1 228.129.1.1 229.1.1.1 229.129.1.1 230.1.1.1 230.129.1.1 …

Member Avatar for VernonDozier
0
78
Member Avatar for maddy1985

I need to write a program that parses an ip address and subnet mask and prints out the associated network id and host id. The program should accept the ip address and subnet mask as input parameters, e.g., ipcalc 192.168.1.129 255.255.255.240 The output should display the class of the address, …

Member Avatar for maddy1985
0
846
Member Avatar for nanoooosha

Hello, I have this function void smallAverage(int *array, float *average, int *numSmallerThanAverage ); which returns in the parameters, average and numSmallerThanAvergae, the corresponding result. average is the average value of all the elements of the array. numSmallerThanAverage is the number of elements in the array which are smaller than the …

Member Avatar for Dave Sinkula
0
134
Member Avatar for ramsdellcp

[code=c++] // AY3814 - Chris Ramsdell. Program 1 - Hangman game per guidelines. #include "stdafx.h" #include <time.h> #include <stdlib.h> #include <iomanip> #include <iostream> #include <string> #include <fstream> #include <cmath> #include <stdio.h> #include <cstdlib> #include <sstream> #include <vector> using namespace std; int main(); class Hangman { public: void set_values (string, string, …

Member Avatar for csurfer
-1
150
Member Avatar for Frederick2

Been meaning to ask that question for a long time. With Visual Studio 6 I seem to recall I had to include iostream.h to use the CString class. Do I have that right? I think I also had to specify in a configuration dialog that I wanted to either link …

Member Avatar for Frederick2
0
297
Member Avatar for LaurenR

I have a program that will ask the user to enter 10 elements into an array and then ask them to delete one of them. I have written the classes to delete one instance of the element and that works. Now I have to write one that will delete all …

Member Avatar for LaurenR
0
101
Member Avatar for ramsdellcp

[code=c++] #include "stdafx.h" #include <time.h> #include <stdlib.h> #include <iomanip> #include <iostream> #include <string> #include <fstream> #include <cmath> #include <stdio.h> #include <cstdlib> #include <sstream> #include <vector> using namespace std; int main(); class Hangman { public: void set_values (string, string, string, string, string, string, string, string, string, string, string, string, string, string); …

Member Avatar for DdoubleD
0
109
Member Avatar for dkos

I'm working with Excel remotely, that is, using a secondary application and stuffing, retrieving data from an excel sheet using APIs. The trouble I have is that I send the API calls too fast! And yes, I can delay them with a timer or "FOR loops", whatever, but is there …

0
59
Member Avatar for adi.shoukat

I want to pass char array to pthread_create but i am confused that how to use that array inside the thread function .... coz that function takes pointer to that array .. not the array. [CODE] void thread_function(void *clientNum, void* cp) { char localArray[30]={'\0'}; // How can i copy the …

0
74
Member Avatar for aomran

I have a new assignment about Huffman encoding, there is part of the assignment that is not clear to me, I searched the web, but could not find an answer, I need some help to understand this part. it is as follows: The standard algorithm states that you should use …

Member Avatar for Lerner
0
66
Member Avatar for jsapp36

Hello - I love this site and often visit to search for answers to problems I have with homework. Well I finally ran into a brick wall with this one. Hopefully I can get some help, or at least pointed in the right direction. I usually can figure things out …

Member Avatar for Lerner
0
103
Member Avatar for jakesee

Hi, I am trying to implement a Data Manager class (singleton) that initializes data, keep track of memory usage and acts as a data pool for other classes to share the data. My problem lies with the sharing. After considering serveral factors, I want to share data in the form …

0
82
Member Avatar for infern0

/* Write a program that reads two integers num1 and num2 from the user, then displays the total of the all of the numbers between num1 and num2 (inclusive). Your program should handle the following: 1. Make sure the numbers entered are between 0 and 100. 2. Make sure the …

Member Avatar for Grn Xtrm
-2
110
Member Avatar for quintoncoert

I have received a library in dll format with a .h header file. When I instantiate an object from one of the classes I get an access violation error. It is a run time error; the program compiled bug free. The program even runs. It is just at the exact …

Member Avatar for Basicgear
0
566
Member Avatar for Basicgear

Im following an SDL tutorial and I seem to receive these errors when building.. First-chance exception at 0x68129afb in Hello World2.exe: 0xC0000005: Access violation reading location 0x00000004. Unhandled exception at 0x68129afb in Hello World2.exe: 0xC0000005: Access violation reading location 0x00000004. I dont know what im doing wrong but VC points …

0
66
Member Avatar for Basicgear

I have been following an SDL tutorial. This is my code followed by the errors. [code=c] //The headers #include "SDL.h" #include <string> //The attributes of the screen const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; //The surfaces that will be used SDL_Surface *message …

0
65

The End.