General C++ Programming - April 2014 (Page 39)

by Argy
Colors
 
Hi,I would like to know if it is possible to have diferent colors on your text. There is the system("color (your choice)") to change background and foreground ...
[6 replies] Last: #include <iostream> #include <windows.h> using namespace std; int mai... (by Yanson)
by shaytn
Maze and mole game help
 
I am working on a maze and mole game. I keep getting "Run-time check failure #2- stack around 'row' was corrupted" and I cannot get the percentage equation work...
[3 replies] Last: Thanks for the help I greatly appreciate it. (by shaytn)
by shaytn
Random sentence generator
 
Can anyone help with this program: #include<iostream> #include<cstdlib> using namespace std; int main() { char *article = { "the", "a", "one", "some...
[4 replies] Last: I would have used std::strings butt my instructor wants it in char (by shaytn)
Project - Looking for A Coder
 
Hello, I am looking for a coder to write a stand alone program to interact with an API we are building onto our existing software. You can see a very brie...
[2 replies] Last: Thank You...I did. =/ Moderator please delete and I will re-post in J... (by bggshoppinginc)
Why I'm getting these errors?
 
I executed my project and Visual Studio showed 20-ish syntax errors from stdio.h and string.h I have not used these libraries. Also, how come they bring up er...
[2 replies] Last: What does the global space of your code look like? You don't have a ma... (by Computergeek01)
template<typename T> scope?
 
if I define a template<typename T> in header file a.h, then any file with #include "a.h" will know T is a template typename?
[1 reply] : No. 'The 'T' is just a placeholder for the function / entity it is ass... (by TwilightSpectre)
New to C++, Having trouble understanding how some simpe things done in Java or .Net done in C++
 
I have gone through quite a few posts here and I find some real serious knowledge flow going in here. It is motivating. My Query: I am basically from SAP ...
[6 replies] Last: It is basically framework. So is it C++ ?/ Yes, Qt is GUI and Wt is ... (by coder777)
Function can't read entire executable file.
 
Hello everybody! I am writing a program which compresses files into .zip files. Here's my problem: Whenever I want to compress an executable file, my readFile...
[6 replies] Last: Haha, Douas, I have been thinking on the same: What? My function is wr... (by iQChange)
Calculations from Text File
 
I have a text file that contains values as follows: 2013 05 27 15 52 02.049824 231.401 0.022 49.738 2013 05 27 15 52 02.668822 229.814 0.019 49.738 2013 05 2...
[5 replies] Last: yup. (by mutexe)
Can I Optimize this code with better array manipulation??
 
Hi everyone!!!! I have a byte array of a certain size. I would like to grab it's last four bytes and put them next to each other to form a four byte hexadeci...
[1 reply] : I don't think you can do much more from C, and what you've done seems ... (by kbw)
by brichz
Location Based reminder with Qt IDE
 
Could any one with good knowledge in Qt assist me to develop a mobile app.
[no replies]
Unhandled exception at 0x10009505 in opgl.exe: 0xC0000005: Access violation reading location 0x00000001.
 
why does this error occur and how to how to fix it source code: #include<Windows.h> #include<GL/GL.H> #include<GL/GLU.H> #include<GL/glut.h> #include<m...
[2 replies] Last: Thanks (by opgllover)
How to get the current video mode in console?
 
Hi, I've been wondering if there's a function or procedure used to know the current video mode. An example of how this was done in Pascal: function Video...
[1 reply] : This really belongs in the Windows forum. #include <iostream> #inclu... (by cire)
question about calloc
 
What I find confusing about calloc is it takes two arguments. One is a number of elements and the second is the size of each element. So in the below example, w...
[2 replies] Last: that's a good an example of when to use both thanks (by johnmerlino)
Square root Function
 
I having trouble with the rational class here is my assignment: Add a square root function to the rational class. Have your program print the square root of...
[2 replies] Last: Not sure you can achieve that. First an observation: float root(int ... (by ats15)
by mm123
Constructors and member functions
 
You are provided with a class definition for a class called Date, used to store calendar dates (see below). Certain functionality for output and equality testin...
[2 replies] Last: Start with this: http://www.cplusplus.com/doc/tutorial/classes/ You s... (by Zhuge)
Having trouble with taking data from files and giving information to another file
 
Whenever I run my program, It should be taking this string of information: Shampoo 10 8.75 87.50 Pen 3 2.50 7.50 Headphones ...
[1 reply] : For reference, this is what the output file looks like after I run my ... (by GrizzThePro)
Struct
 
How can I do this: Make a program taking into consideration the following structure: tituloCancion string duracionMinutos int duracionSegundos int S...
[2 replies] Last: I do not know how to get the title of the song with more duration. (by Centinela)
Open processing
 
I am trying to create a graph demonstrating a capital dependent parrondo paradox - http://parrondoparadox.blogspot.co.uk/2011/02/mathematical-background-of-parr...
[1 reply] : Processing is its own language. This is not C++, and wouldn't compile... (by cire)
Old Style Minimaps
 
This is more of a theory based question then anything directly related to C++ but this is the best place I have to ask so I will try! (Maybe should be in lounge...
[2 replies] Last: So you think they actually did create all of the minimaps by hand? Se... (by Hippogriff)
April 2014 Pages: 1... 3738394041
  Archived months: [mar2014] [may2014]

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