49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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, … | |
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); … | |
Hi, Does anybody know how to enable/disable a secondary monitor using ChangeDisplaySettingsEx or any other function? | |
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" | |
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 … | |
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 | |
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 … | |
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 … | |
Hi, I want to know how i can use multithreading in vc++ . please give an example . thanks in advance | |
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: … | |
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); // … | |
Can you convert CC++ Code into Java, if so how?? | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
| 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. … |
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 … | |
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 … | |
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. … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.