Beginners - June 2013 (Page 29)

Battery CHecking Program
 
How do you write a program to check the battery life left? I want to add the code in my already existing program.
[no replies]
by Blank
BMI program
 
i need help with this program. i have tried applying the formula that was given to me into the code but when i try use the (pow) function an error comes out. ...
[7 replies] Last: thank yoiu donnie! i appreciate the tips and how to improve the code!.... (by Blank)
by YoniBE
Error C2660 function doesn't take 1 agriment
 
Hi! I started to build a simple game with C++ and the library SFML and I got an error: error C2660: 'sf::Sprite::getTexture' : function does not take 1 argume...
[5 replies] Last: You haven't defined the function Game::ShowSplashScreen or you defin... (by cire)
by piczim
Windows Compiler
 
I am trying to understand exactly what I do once I compile successful code and I want to share it with my friends so they can run it on there computers. Are the...
[3 replies] Last: Thank you for all the advice and help. I was anxious to know that I wa... (by piczim)
ASM Program, Data Definitions
 
Having some trouble with my program, the problem states "write a program that contains a definition of each data type listed in Table 3.2 in Section 3.4. Initia...
[no replies]
by orcbum
Outputting to file from multiple functions
 
I'm having a problem where I don't know how I can output to a single file from multiple functions. //Example code #include<iostream> #include<fstream> void h...
[3 replies] Last: are you trying to append to file? i mean in your example are you exspe... (by Vidus)
Swapping character positions in an array.
 
So let's say I have an array named a and i stored the characters 3386-481, from a to a respectively. How could I swap the positions of the hyphen and the 6, ...
[5 replies] Last: We all started somewhere. Anways, I fixed it. (by damasta6)
by xsxs
Trigonometry
 
Hi, I am trying to make a trig calculator. #include<iostream> #include<cmath> using namespace std; int main (){ cout<<"Hello, welcome to xxxx trig. calculator...
[9 replies] Last: ok vlad from moscow , i'm now looking at the date you posted your com... (by Rechard3)
Moving code out of main function
 
Hi, I was told by a work colleague that the code within the main function should be kept to a minimum. With that in mind, I started trying to move some of the h...
[no replies]
Page 1.
 
Hi, total newb, I can do logic gates, RCL etc. I plan to learn to program and make a fortune ... hmmm ... Which brings me to page 1/ C programing... So I e...
[8 replies] Last: @Zereo : Do not use bloodshed please for gos sake stop recommending ... (by Rechard3)
seekg, not exactly like the reference said.
 
hi, i was trying to write a function to copy files, and i stumbled upon this problem. please read the full post before trying to answer, do not skip any line ...
[3 replies] Last: Cubbi wrote: Note that streams can be copied by simply out << i... (by Rechard3)
Void function
 
HEy everyone thanks for your time. the code i have here is used to find the sum,average and product , i got them to work in a normal function which returns a va...
[11 replies] Last: [quote=Lucian Adamson]your averageCal function could be as this: wh... (by Disch)
order of class declarations
 
I was trying to make an example where the declarations of two classes are interlinked and I came up with the following example. Please, let me know what is a p...
[3 replies] Last: From what I can see, the "missing definitions of constructors and dest... (by closed account NyhkoG1T)
by mcm96
Linux causing a problem
 
We ported from UNIX to LINUX and one of our programs has stopped working as expected. the problem appears to be a comma in a numeric field where one did not ap...
[3 replies] Last: What does command locale show? You could try to set LANG=C for th... (by keskiverto)
by Ryria
I feel I am missing something...
 
Hello C++, I have been using different tutorials over the past few days to achieve this terrible terrible code and I feel I am almost at the stage where it wil...
[9 replies] Last: Hi, cPlayer.CurHP() is a member function which only returns the HP, ... (by Anthony Littlewood)
why float has such a strange behaviour?
 
HI! There is a piece of code which takes 'n' float or double numbers and calculates their average and then adds or subtracts to numbers so all of them reach to...
[3 replies] Last: I think it's our familiarity with the decimal system which causes fals... (by Chervil)
Problems with compilation
 
Hey everyone, I am having some issues with a class assignment I am working on. It would be great if anyone could tell me why this is not running. It keeps ...
[5 replies] Last: GetNum is effectively scanf, and you are calling it, and scanf! Also y... (by Mitch)
Skip comments in text file?
 
Is there any way to skip comments in text file by putting a // or something I'm pretty sure fortran has something similar and you use a # in the text file.
[8 replies] Last: no worries dude :) (by mutexe)
by piczim
Adding a pause
 
Is it possible to add a pause into code. I want to be able to add a pause between certain lines of code
[5 replies] Last: I am trying to teach myself and I have code which makes a statement ba... (by piczim)
how can program access strings saved in a vector in server app?
 
i have a server that saves the clients ip addresses to a vector. how can another program access this vector and display the contains in a listbox? here is t...
[3 replies] Last: wait, I overlooked the 'another program'. you can send a specific mes... (by coder777)
June 2013 Pages: 1... 2728293031... 49
  Archived months: [may2013] [jul2013]

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