General C++ Programming - October 2013 (Page 13)

Please help with ending to console application!
 
Hey so this is my 2nd time ever using c++ (or any coding related thing for that matter), either way; I can't figure out how to finish this code, please help. P....
[14 replies] Last: doesn't allow me to compile What do you mean by that? Are you using... (by MikeyBoy)
How to pick a random number from an array
 
Basically we have this 7 bit binary code, and i would like to pick out 3 numbers randomly from it, how do we do that ? for example 1011101 int Num ; ...
[3 replies] Last: I suppose that's correct, altho it would always take more CPU time to ... (by Bourgond Aries)
by zkyzky
help with login authen
 
my program only allow userdata from "userdatabase.txt" to enter when ask for login and password. but now I anyhow type also can login. can anyone tell me wher...
[1 reply] : Please use code tags http://www.cplusplus.com/articles/jEywvCM9/ Your... (by Bourgond Aries)
Newing a More Complicated cdecl
 
I have recently discovered a wonderful source of information regarding the method used to read cdecl: http://www.unixwiz.net/techtips/reading-cdecl.html Now,...
[1 reply] : Here's what I've tried out. Is it simply impossible? Apparently the ty... (by Bourgond Aries)
by letzel
Fortran's WHERE statement
 
Is there a way to realize Fortran's WHERE statement in C++? I have an array and would like to set negative array elements to zero, as in this Fortran code: WH...
[2 replies] Last: Iterate over the array, check the condition, and do your work: float... (by Bourgond Aries)
Undefined reference to function
 
So I have a really strange problem occurring... First, here are the files I'm using: //pa4.cpp wirtten by Syd Frederick #include<iostream> #include<...
[2 replies] Last: compile them using: gcc -c pa4functions.cpp -o pa4functions.o compil... (by heepoo)
Running bat files
 
I want to know if you can run bat files from code? If so how else how can you shutdown a computer with code? OS is windows 7.
[2 replies] Last: Rightly mentioned by giblit here is one way to call the bat files from... (by tajendra)
Rearrange Text To Fit On A Screen With Assumed Margins
 
I just had a quick question: How would I rearrange a given text to fit on a screen with assumed margins? The parameters are: text ( the text to rearrange )...
[no replies]
Source code of C++ Libraries
 
Hello. I was wondering if there was anyway to see the source code of the c++ libraries or possibly even opengl libraries. I just think it would be useful to kno...
[1 reply] : Mostly, yes. It's called Open Source. These days, even Microsoft rel... (by kbw)
HELP!! calculating with time
 
hi I have to write a program for class in which users will be inputting: start time = startTime number of minutes = callDuration so first off, teacher want...
[4 replies] Last: ive got a problem validating the minutes so that the user can input ... (by rodiongork)
Calling a string in one function, into a new function
 
Hi guys, how would I call a string that sits within a switch loop in the main function, into a separate function? Like this: void statistics() { cout...
[2 replies] Last: By George, you've got it! That was super simple, I realize now how sim... (by MJGilbert)
How to read the number from text.txt
 
Hello everyone, I'm a new C++, and I have a question that needs to help. Here is my assignment: Bailey M CC 68 Harrison F CC 71 Grant ...
[no replies]
syntax question
 
In the line pLoopUnit = ::getUnit(pUnitNode->m_data); , the function getUnit gets called, but I don't know which one gets called, as there's more than one defi...
[2 replies] Last: alright thanks a lot... ! Cheers, AeonFlux (by AeonFlux1212)
NEED HELP WITH PROGRAM!!!
 
Im making a program but I try to get the answer with tax am unable to. ANYONE HELP!! #include<iostream> #include<string> using namespace std; int ma...
[1 reply] : Use code tag. What is your problem? (by CroCo)
Power series help!
 
Whats wrong with my code?! I need to be able to enter the N but im not sure how to do it and make my function work properly. #include <iostream> #i...
[2 replies] Last: There are a great deal of fundamental errors here. I think you need to... (by Mats)
How to stop input after certain characters
 
I'm trying to get the user to input their 5 digit zip code but my problem is how can I stop the program after the five characters have been inputted. Also how c...
[2 replies] Last: No I'm asking the user directly int ZipCode; cout << "Please Enter... (by Modern Man19)
Good API Library
 
I have heard about Qt, Win32 and i was just wondering what the best api library to use with C++ is? I don't want Win32 because i want my program to be cross pla...
[3 replies] Last: i'll just go for Qt (by Cronnoc)
undefined reference to class::function
 
Hey guys, if you could take a quick look at this code that would be great. I've spent a few days staring at it and I can't seem to find what is wrong. The err...
[7 replies] Last: You're welcome! Glad it worked :) (by MikeyBoy)
When looping a switch, my "pause" runs twice
 
Hey guys, I am back because of the incredible help I see throughout this forum. I am currently having a problem when trying to loop a switch statement and then ...
[8 replies] Last: UPDATE: Okay guys I changed it around a little bit and got it to read... (by MJGilbert)
Mahmoud
 
Hey gays, I want to merge Two arrays in one array as this #include <iostream> using namespace std; int main() { const int n=10; int a ,b ,c[2...
[1 reply] : Hey gays, Now that's an entry :D This: for(j=0;j<n;j++) { c[i + j ]... (by coder777)
October 2013 Pages: 1... 1112131415... 46
  Archived months: [sep2013] [nov2013]

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