General C++ Programming - June 2014 (Page 15)

recognizing audio ports?
 
my dad asked me to write a program for him that involves playing music through whatever is plugged into the audio port. i asked on irc, and computerquip said i ...
[3 replies] Last: Google for it! i tried but nothing came up. thank you mii. ill look... (by Little Bobby Tables)
Pointers definition
 
Which is the difference between defining a pointer like: doublereal *muAnode = new double [Anode.Gas.nSpecies()] and doublereal * muAnode = [Anode.G...
[1 reply] : The second does not compile, the first does after adding the missing s... (by LB)
Decimal to Hexadecimal code
 
Hi! I have to write a code that converts a hexadecimal value to a decimal value.. So far I have #include <iostream> #include <cmath> #include <string> us...
[5 replies] Last: I knew it :P But I think he needs it for some assignment. (by iQChange)
by wahhaj
What does this code mean, Random numbers
 
#include <random> std::random_device rd; std::default_random_engine generator(rd()); // rd() provides a random seed std::uniform_real_distribution<double>...
[2 replies] Last: This makes thing a little clearer albeit still a bit advanced for me I... (by wahhaj)
Practice failure?
 
Was trying this switch code online, but it fails for me, saying "unresolved externals". What is missing? my Visual Express doesn't actually show me any errors. ...
[2 replies] Last: Not sure what it was. I closed the application, and opened a new proje... (by cavendert)
How does the VGA sequencer work?
 
Anyone knows how exactly the VGA sequencer takes all pixels in order from VRAM and passes them to the attribute controller? I've gotten the attribute controlle...
[no replies]
Strange Question but...
 
Hello, I am beginning to partake on my next project and I was wondering if the was anyway if you can display a "window" so to speak in console? Like a secondary...
[6 replies] Last: I suspect OP is talking about something like this: http://litemedia.in... (by helios)
by whoya
Help with collision
 
So this is my code for pong... #include <stdio.h> #include <conio.h> #include <glut.h> int x; int y; float BallX = 0.0, BallY = 0.0, BallXY = 0.0; ...
[no replies]
Compiler Bugs
 
I am programming with the Code::Blocks IDE and using the GNU GCC compiler. When I create an simple console application that uses strings it kind of glitches out...
[1 reply] : cin stops when it encounters a blank space. Check into using getli... (by wildblue)
Why and how to make your own library?
 
I've learned C++ for some time now, and I've nearly finished my sensei test in the language. Rummaging through my stuff today, I found some papers from the "C++...
[5 replies] Last: How is it most C++ programmers only know the STL, and barely know wha... (by Cubbi)
by tdk93
What does qualified/unqualified type mean?
 
I'm reading a book on C and it has the following text there The Constraints portion of Section 6.3.2.2 of the ANSI C Standard includes the phrase: Each ar...
[4 replies] Last: Even in C the semantics of passing parameters is the semantics of init... (by JLBorges)
Operating System Help
 
I was wondering if I could make an operating system with Visual Studio 2013 with C++. I was thinking about making one that is like MS-DOS. I want it to be text-...
[3 replies] Last: Is Assembly a language? xD I think that machine code is too hard. Mind... (by iQChange)
Auto Wifi Manger
 
I know there lots of wifi mangers out there but since Easy Wifi is no longer up and running id like to make a new version code in c++ Views all wifi C...
[1 reply] : I have intermediate-expert knowledge and I don't mind creating a datab... (by iQChange)
SFML Array of Sprites
 
So I am writing a map generation algorithm (with SFML), and it seems the problem is in here: Sprite sprites ; void genmap(){ Texture grasstiletex; gra...
[9 replies] Last: I don't believe it, it was an issue with the libraries. It appears whe... (by closed account EhqpDjzh)
How to get the length of a passed in linked list?
 
I fixed it on my own. Nevermind.
[1 reply] : You will have to show more code. (by abhishekm71)
Problem calling functions??
 
This program in not completed. I am creating a large program in order to calculate a company's weekly payroll. For now I am filling in the separate functions pi...
[1 reply] : Line 77: you are not calling function here. You are declaring function... (by MiiNiPaa)
How to error check letters?
 
How do I error check if the user is inputting letters and not numbers? For example, if the user inputs "Lab.txt" I need to display an error message. If they i...
[1 reply] : You are looking for a string. In C++, you can use an std::string for ... (by firedraco)
Cmd closes after user input
 
i'm a newbie to c++ and i'm trying to make a simple program that accepts user input, simple stuff. When the user (me) enters a number to be sent to the console ...
[5 replies] Last: U can use loop while condition is not false and keep on asking and con... (by csstudent123)
pls help with PRODUCT RATING calculator
 
The input is X ( X is a decimal number ,which is belongs to {0, 0.5, 1, 1.5, 2, .., MAX}) The output should be a string that consists of "FS","HS","FE" (repr...
[2 replies] Last: Your question seems pretty unclear to me... (by csstudent123)
OOP & Linked List Mini-Project
 
Hi, I have an assignment which must be handed over this Friday next week. I have to make a mini-project consisting of a C++ console program. It's a broad ...
[4 replies] Last: I've been talking with my adviser, and he told me that if I'll make su... (by RobertEagle)
June 2014 Pages: 1... 1314151617... 21
  Archived months: [may2014] [jul2014]

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