General C++ Programming - March 2012 (Page 13)

by rayy
How to draw a single pixel
 
Dear Programmers, I want to write a program, which needs two points, and draws a line between these two points. The problem I'm facing now, is how to draw a ...
[6 replies] Last: you may want to see something like this... http://www.cplusplus.com/fo... (by S G H)
static function
 
i have a class named 'student' inside the class i have a variable called 'studentG' and another one called 'sumG' (sumG is static) inside a static member functi...
[9 replies] Last: nvm guys i found out my error, i forgot the static initialization in t... (by Tony Karam)
by wtf
trying to change to different compiler with codeblocks
 
I downloaded tiny c and digital mars compilers, copied them into the codeblocks root directory (the same directory where mingw is installed by default), and s...
[2 replies] Last: The file named string.h does not contain the class string . It is a... (by Moschops)
by wtf
Question: How do I use my c++ knowledge to develop mobile apps.
 
I know practically nothing about 'smart' phones or ipads etc.
[18 replies] Last: You need eclipse http://www.eclipse.org/downloads/ (you can use net be... (by naraku9333)
[Link Error: 2001] Selfmade Lib Problem
 
We are trying to build a Editor for our Game Engine and so we made a lib from the Engine und link that in the Editor Proj. The Path for the Lib and the Include...
[2 replies] Last: Your Init prototype (if it is as in your example is wrong). You need t... (by modoran)
by Yanik2
loop
 
Can someone please explain me why there are 2 while statements in this code? I understand the second and last while statement, but what is the first 1 doing the...
[1 reply] : I erased the first while statement a few times and the program did not... (by Yanik2)
Set precision
 
Hello All, I'm new to C++ and I need some help getting my numbers to display with only two trailing numbers after the decimal point. The program runs and doe...
[2 replies] Last: Thank you @ Disch. (by compGirl)
by TiiG
How To Upload A file To An FTP server with C++, Using CMD?
 
I need to upload a file using CMD with its FTP commands. But I want to do it using c++ in Visual Studio. For example if i am doing it by hand these are the ste...
[2 replies] Last: You need to use pipes if you really want to use cmd ftp client. Howeve... (by modoran)
Factoring Numbers
 
Hey guys, I am a new c++ programmer, and I created this program to factor numbers and tell u if they are prime. However, I would like to make it so that it does...
[no replies]
I need a math wiz to help solve this ^^ (1,2,3,4)
 
Hello everyone, I need help with something. I want to be able to compile 8bit numbers into a full sized integer. Here is the code I have for that: int Comp...
[66 replies] Last: > What about Little/Big-Endian issues? Yes, there is the issue of the... (by JLBorges)
comparing dynamic stacks
 
Hello. I`m kinda running low on time for this assignment and can`t seem to figure how to solve it, so I`m posting here. "Write functions to compare two dyna...
[3 replies] Last: since its not good of us to just solve a question for you without you ... (by SUH)
basic declaration question
 
Class MyClass { }; int main() { MyClass a; MyClass b(); } What is MyClass b()? Is it a function declaration? Thanks.
[6 replies] Last: @moorecm Oops! My teacher just introduced me the <More Effective C++>... (by c90a78)
SYntax error in this file i/o c++
 
Hi, I need help to make this program work. As I've converted the text in MS.Excel to text file, there are commas in the input. The text file input: 12345,,x,...
[1 reply] : I fix your code as #include<iostream> #include<fstream> #include<str... (by w397090770)
Decimal to Binary function, can it be better/quicker?
 
Hello, I've just started learning C++ and I've created a simple decimal to binary function and I was wondering if it's okay this way or can it be any quicker...
[1 reply] : The shortest way to write a function like this I can think of is to us... (by Peter87)
Truncating bytes
 
I can't think of how to go about this so I decided it would be quicker to just ask the experts. I have a function that generates 64bit signed integer, what I wa...
[3 replies] Last: Found a way int main() { u8 i = 0u; s8 v8s = 0x0; u8 v8u = 0u; s... (by awsdert)
by AcarX
Recording Audio
 
How can i record audio from mic with c++?
[4 replies] Last: Ok then i will try ALure.Thanks again :) (by AcarX)
Cannot output a vector
 
What I am trying to do is get a number from a text document and print out the prime factorization of the number with a vector. If there is a better way to do w...
[1 reply] : for (size_t i = 0; i < vectFactors.size(); i++) cout << vectFactors ... (by modoran)
by chrisf
Need help with converter program
 
Hello, I need some help with a program that I am working on. The program is a executable monetary conversion program I need my utility to converts d...
[1 reply] : @chrisf Get rid of the return( and ) at the end. You are not usi... (by whitenite1)
alpha-numeric to numeric program
 
The following program should take a phone number with alpha-numeric and convert it to numeric. The problem i am having is that it give me an syntax error saying...
[3 replies] Last: Post the error then. (by ne555)
Check if one parameter has been passed to a function
 
Hi I want to check if parameters that I pass to one function,are passed correctly to that function,or not.of course parameters are passed by pointer. Is there...
[6 replies] Last: Excuse me. It was my fault in assign enough buffer !! Anyhow thanks a ... (by nima0102)
March 2012 Pages: 1... 1112131415... 49
  Archived months: [feb2012] [apr2012]

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