49,761 Topics

Member Avatar for
Member Avatar for shadowuy

Hi im starting to learn c++ and im having a little issue that im not capable of correct yet... the program ask the user to imput the size of an array then the program create it at that size, fill it with random integers and output the array into the …

Member Avatar for thelamb
0
170
Member Avatar for romyboy2k9

Hello, could some please help me with a current project that I'm working on for school? I have the following code, but the output shows unknown address. The following is the description of my assignment, and the code I have so far. Thank you. Write a program that creates a …

Member Avatar for thelamb
0
123
Member Avatar for panda_pow

Hey everyone :) So I'm doing my homework when I get this massive brainfart. It's all done, and everything works, except I need a way to make [B]j[/B] [in the function AddStudents()] get bigger without resetting to 0 everytime the function is called (so it moves to the next cell …

Member Avatar for panda_pow
0
147
Member Avatar for nbaztec

Ok, I need to know some methods(links, articles, etc.) regarding how to parse & comprehend 32-bit grayscale bitmaps on the basis of their data. Suppose I have a black background & a white primitive of medium resolution is there any way I can identify the primitive as a Circle, Box, …

Member Avatar for nbaztec
0
316
Member Avatar for pubis

Here's a code I use (ignored error checking) to read two registry values, combine them and write them to a third one. [CODE=c]unsigned long type=REG_SZ, size=1024; char iLike[1024]=""; char Apples[1024]=""; char iLikeApples[1024]=""; LONG rV; HKEY hKey = NULL; // reading the first value rV = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\\FARM\\ValueName1", 0, KEY_ALL_ACCESS, hKey); …

Member Avatar for pubis
0
133
Member Avatar for VBNick

Hi, Does anybody know how to enable/disable a secondary monitor using ChangeDisplaySettingsEx or any other function?

Member Avatar for VBNick
0
632
Member Avatar for spinning_turtle

I am an Aspiring new coputer nerd trying to learn c== all by my self and would like suggestions of simple code ideas for beginers if you have any ideas send to "<EMAIL SNIPPED>" subject "ideas"

Member Avatar for mrnutty
0
49
Member Avatar for spartan118

Heyy Daniweb, Got a project I'm trying to compile and I'm getting the following errors: [CODE]--------------------Configuration: rpg - Win32 Debug-------------------- Compiling... rrrrrrrrrrrrrr.cpp Walking.cpp H:\final project\rpg\Walking.cpp(551) : warning C4715: 'See' : not all control paths return a value Linking... Walking.obj : error LNK2005: _main already defined in rrrrrrrrrrrrrr.obj Walking.obj : error …

Member Avatar for VernonDozier
0
262
Member Avatar for Supriyo

Hello. I am wondering how to pass data to hundred and hundreds of functions from main() in an application that has more than 1000 files. Can anybody give me some code? Regards, Supriyo

Member Avatar for rahul8590
0
250
Member Avatar for glenc70

ok i made a class and a new pointer object to the class class *a = new class[50] but at the end i forgot to delete them, now i know this will cause a memory leak which is bad but will the memory leak be gone when i re-start the …

Member Avatar for Nick Evan
0
98
Member Avatar for shoikatroy

hi i just wanted to parse a file to find certain associated data for ex if my text file is : <!#first>This is string1 <!second>THis is string2 So if user types in first...he will get This is string 1 iv written a simple C++ code to parse the text file …

Member Avatar for iamthwee
0
80
Member Avatar for mnf

Hi, I want to know how i can use multithreading in vc++ . please give an example . thanks in advance

Member Avatar for Ancient Dragon
0
70
Member Avatar for ibrahim72ro

I need to create a bynarytree of which information of a node is made of ISBN and price fields, data kept in a structure (book). I write in a .txt file : ISBN=10 Price=100 ISBN=13 Price =1 how can i populate the bynarytree with this informations, from the file? example: …

Member Avatar for Ancient Dragon
0
138
Member Avatar for Jacobah

Hi All I have Dialog include 20 pictures, on dialog initializing I try to take them off. i write this code: [CODE]CString tempname, tempnum; // define temporary name and number char tempvar [10]; // define temporary variable for (int x=1;x<=20;x++) // x picture location { tempname="IDC_"; // IDC_1...IDC_20 itoa(x,tempvar,10); // …

Member Avatar for Jacobah
0
265
Member Avatar for Wakesta
Member Avatar for Theo Gooden

I am new to software development. I just started to read software engineering by Ian Sommerville and just fell in love with software development. I want to learn the C++ language. What is the best approach to quick and clear understanding and use of the language. I want to develop …

Member Avatar for Nahiyan
0
167
Member Avatar for fougere

In the following example: [CODE]int a = 2; float b = 3.2; float c = a+b;[/CODE] Is 'c' 5 or 5.2? Is there a rule, like "lower precision types are promoted" for example, or is there a rule like "the first operand is converted to the same type as the …

Member Avatar for fougere
0
88
Member Avatar for Veer

This code assignment is due by class #14, Wednesday 10/20/2004. Write a program that reads in any 25 decimal numbers from standart input source (terminal), determins the actual and absolute lowest & largest values, and computes average of all the given numbers. You may use any/all programming techniques we have …

Member Avatar for camie_yeye
0
142
Member Avatar for Buolbear4444

I made a Roguelike game with SFML in Microsoft Visual Studio 2010 and got it to compile fine in both configurations. However, when I run it in Debug mode in either, I get an error message. Debug says: [quote] This Application has failed to start because the Application configuration is …

Member Avatar for Ancient Dragon
0
257
Member Avatar for megamanexp

Hi there, i am also currently working a project on the face detection using OpenCV but is using the Borland C++ to do the programming. Could anyone guide me i need help thank you and if possible can anyone send a example file that working and how do i really …

-3
37
Member Avatar for achieve_goals

I am trying to make a circular linked list. I will appreciate if anyone can tell me how to make it better. [CODE] int n = num_people; Node *head = new Node; head->next = new Node; Node *temp = head->next; for(int x = 2; x < n; x++) { temp->next …

Member Avatar for daviddoria
0
68
Member Avatar for Griff0527

I am trying to edit my current homework assignment to include a loop that lets the user repeat the computation for new values until the user says they want to end the program. I was given a hint to use integer division and the % operator to implement this function. …

Member Avatar for NathanOliver
0
275
Member Avatar for minihannah

For a uni project I've been writing a program to simulate video feedback. So basically I have 2D arrays representing the 'screen' and the 'camera' and I'm copying a portion of the screen to the camera then putting the resulting 'image' back on the screen. I'm creating really basic fractals …

Member Avatar for minihannah
0
1K
Member Avatar for fellixombc

Alright, my server only loops 3 times (recv's two strings that have been sent) and then freezes when there is no more information being recv'd. Note, this is happening in the listen() function. Main.cpp [CODE]/* * File: main.cpp * Author: fellixombc * * Created on May 23, 2010, 2:14 PM …

Member Avatar for fellixombc
0
1K
Member Avatar for kingnebula

Hello, I am trying to make a small utility that will search a process's memory for a specified value. I am currently able to both read and write memory values. But I'm not sure how I would go about scanning the memory for a value and getting it's base address. …

Member Avatar for kingnebula
0
198
Member Avatar for The_Prince

Hello fellow coders! This is my first time and post on forum but hope to stay here seems like a good friendly place Anyway the following code is to count the number of digits on user input. This includes decimal numbers. So far the code does what it does 1. …

Member Avatar for NathanOliver
0
162
Member Avatar for dansnyderECE

I want to represent 2^32 elements in a vector. In reality, I allocate about 500,000 elements and then everything else is there to be used by my program (for storage of data). So I have to have say.. elements: [0-999999] = 0 [100000-599999] = info [600000 +] = 0 <-really …

Member Avatar for dansnyderECE
0
160
Member Avatar for BLKelsey

Hello all, I'm still new at C++ and I'm almost through with this assignment. The thing I'm trying to do it have it repeat the hangmanMenu (which are switch statements) until this user chooses to exit, in which the program will exit. Can I get some ideas on how to …

Member Avatar for mrnutty
0
129
Member Avatar for bubacke

hi all, ive got this problem, i think it is an interplay of ifstream and vector... the following code compiles and links without problem, but when i debug i get the message "expression: vector subscript out of range". i know that "out of range" means i am trying to access …

Member Avatar for bubacke
0
478
Member Avatar for rbhave

Hi, I am having problems with my C++ Programs on Sun Solaris server since I have upgraded my C++ compiler from Sun Forte Developer 7 compiler to Sun Studio 9 C++ complier 5.6. I have my own string class which I had issues but now compiles ok after puting option …

Member Avatar for psoma74
0
320

The End.