General C++ Programming - March 2014 (Page 29)

Displaying Editable Text in the cmd View?
 
Hello. I am wondering if it is possible to display editable text in the command prompt when the program is run. I know you can copy with the edit mark thing but...
[no replies]
by kc53
Playing a sound from a resource file.
 
Greetings all, I understand how to play a .wav file in a program, but I am attempting to "package" the .wav file with the project so that it can be played by...
[6 replies] Last: Woops, silly me. PlaySoundW was my suggestion :v (by xismn)
assignment operator
 
So im making a somewhat bigger project for a assignment in school and i'm wondering how i should go about and construct my assignment operator. Iv got 2 classes...
[6 replies] Last: @Computergeek01 Your right, the array is meant to have a fixed size ... (by sebbe605)
by vrakas
All subsets of 250000
 
Given up to 250000 numbers i have to produce a list of subsets(first of one element, then of two etc). Is there an easy way using a bitset<250000> ? Thanks
[1 reply] : What exactly do you need? Something like that? #include <algorithm> #... (by MiiNiPaa)
Regula falsi
 
Am new here and we've been asked to write a C program to illustrate the use of regula falsi anyone with an idea of this please?
[1 reply] : http://en.wikipedia.org/wiki/False_position_method#Example_code (by JLBorges)
by Slord
'sword' does not name a type error
 
I've stripped my code down to it's absolute bare minimum and am still getting this error which I don't know how to resolve... The code: #include <string>...
[4 replies] Last: NVM, answer is yes as main is obviously called first so if it's put in... (by Slord)
Good Cross Platform Way To Communicate With The NIC
 
I am planning to write an Ethernet API, but I need a way to do each of the following: 1. Ask The NIC For The MAC Address. 2. Ask The NIC For Collision Informa...
[2 replies] Last: Check out this: http://www.slideshare.net/victor1tnet/scapy-communicat... (by ResidentBiscuit)
Help! To develop a program (For-loop)
 
help i need to create a prgramme that does .. · Demonstrates a ‘for’ loop that produces the output: 3, 5, 9, 17, 33, 65. (Hint: the loop variable valu...
[5 replies] Last: Thanks guys that was really helpful!! :) (by prashant0789)
Multithreading--Semaphores
 
Hi All, I have come across below code to demenostrate the use of semaphores #include <pthread.h> #include <semaphore.h> #include <stdio.h> #include <std...
[10 replies] Last: you have three threads: main, thread1, thread2 if one of them is in a... (by coder777)
Emulating 8237A DMA Controller?
 
I've written a script emulating a DMA controller. Anyone knows if this is correct? Sources: http://pdos.csail.mit.edu/6.828/2004/readings/hardware/8237A.pdf...
[1 reply] : Continuation of the file: byte DMA_ReadIO(word port) //Handles IN in... (by superfury)
Initializing object of a class inside another class
 
I have a class MySeqBuildBlockModule that I am inheriting from: public SeqBuildBlock. Other than constructor and destructor, this class MySeqBuildBlockModule h...
[5 replies] Last: Thanks everyone, I solved this problem as: 1) by declaring in privat... (by dkumar3)
Vector syntax: resize and reserve
 
Hi All, We can construct vector in following ways vector<int>v1; //create an empty vector vector<int>v2(arr,arr+4); ///to create vector from an ar...
[1 reply] : vector<int>v(10,5) I am clueless ,is this allowed?,what syntax all... (by Catfish666)
IsDialogMessage - Cursor not blinking
 
Hello everyone I have created a simple WIN32 application. I inserted the function "IsDialogMessage" in the while-loop to make the tabstop key change the text...
[1 reply] : I just got the solution: while(GetMessage(&Msg, NULL, 0, 0) > 0) ... (by theRunner)
by zsmash
Number counting up to infinite .
 
#include <windows.h> int main() { int i; int y=6; int x=9; gotoxy(x,y); //gotoxy(x,y) must be the coordin...
[2 replies] Last: your for loop will never execute. Considering 0 is less than 1. Also a... (by giblit)
Header File Will Not Compile
 
I am currently learning OOP, and I can't figure out what the problem is with my header file. The rest of the program complies fine though. I am using g++ on UNI...
[1 reply] : main() should be in a source file. The preprocessor can't find Rectan... (by Zhuge)
Code::Blocks or Visual Studio Express??
 
I have been using the Dev-C++ IDE ever since I started programming over two years ago. While, by and large, it's been very useful and helpful, I've run into s...
[9 replies] Last: I don't understand what you mean. Visual Studio has been proven itself... (by closed account N36fSL3A)
find vowels
 
how to make a program that find vowel in each word. for ex: he is good. no. of vowel: 1 1 2
[4 replies] Last: Don't forget that sometimes "Y" is a vowel. How can you code for that... (by cnoeval)
by Dkob1
cin.peek help equation
 
So far I did this but I have to use cin.peek and I'm not really sue how it works. I have to delete the line(s) I'm currently using to read in the user's input, ...
[12 replies] Last: ya I looked at the other link but it was different, thanks anyway just... (by Dkob1)
C++ Programming Multiple Functions
 
#include <iostream> #include <stdlib.h> using namespace std; void DisplayMenu(void); void FindMilesPerGallon(void); void TotalTime(void) void Prim...
[2 replies] Last: I have fixed the error but i want to show if the number is prime for t... (by Noob Programmer)
Trouble with Code for a class project
 
I'm using Codeblock and I'm having trouble running this code I keep getting errors can anyone help, I'm just learning c++ thanks. #include <iostream> us...
[2 replies] Last: thanks so much we figured out where I included the % and did not need ... (by apachejoe)
March 2014 Pages: 1... 2728293031... 36
  Archived months: [feb2014] [apr2014]

This is an archived page. To post a new message, go to the current page.