Beginners - November 2013 (Page 58)

by enemy
"In function int main()"
 
PLease, what is the error? #include<iostream> #include<math.h> #include<stdlib.h> using namespace std; bool Prime (int st2) { bool answer = true; ...
[2 replies] Last: I have it, but later, cause program is calculating stil lsome things..... (by enemy)
by ephekt
help with vectors
 
I changed this function for arrays to accept an argument of type vector but the function does not do what it is supposed to. Can some one please help me get it ...
[4 replies] Last: for this one i cant use /algorithm/sort i was given a function that wa... (by ephekt)
problems with switch case using arrays an functions
 
Hello everyone I'm fairly new to programming an am working on an assignment where I'm using a menu using a switch statement with arrays and functions. I'm gradu...
[2 replies] Last: yeah I was adding each one by one and running them each to make sure t... (by valmaral)
Parse string, store into array
 
So I have been working on some code for 3 weeks. It should only use functions in main. The purpose of the program is to take a user input string, parse it for w...
[no replies]
Getting data from a .txt file using strings/arrays
 
Thank you for giving my post a quick look, means a lot! Basically what I'm trying to do is read specific data from a .txt file, but I've never done this to ...
[6 replies] Last: Just change char foo[ 000whatever ]; to string foo; , and instead o... (by Duthomhas)
Let the user input integers and stop when input is 0, print out the second biggest number(excluding 0)
 
I have come up with the code below but I don't know if I have covered all the cases, please help me with that. Also if you think you have a better solution then...
[no replies]
Output to file not working?
 
So I've been trying to get a code from Mathematica transfered to C++ to check for something, and for some strange reasons it doesn't run. I've managed to find t...
[no replies]
Floating point
 
Why does this code print "k>0.1"? And how to solve this problem? #include <iostream> #include <conio.h> int main(){ float k=10-9.9; if(k>0.1) ...
[5 replies] Last: #include <iostream> #include <cmath> int Calculator(double a,double... (by condor)
C++ vs Java
 
hi, hoping this is not out of topic... i program in c++ and i'd like to improve it, but i'd be interested in java too... I'm sure many here have experience on b...
[2 replies] Last: thx for the reply, i'll move the posti in lounge (by ardengo)
help me
 
hello i am using code blog for practise,.,.,i m new in C++ . the header files #include<iostream> is not working,.,.,what should i do now?
[5 replies] Last: what is the exact error message you get ? (by nvrmnd)
embed resources in the code?
 
hello everybody i'd like to know how to embed resources (like images or font files) in header files, so it will be part of the final executable. the final head...
[no replies]
Seat selection c++ stuck
 
Hi, I urgently need help. My code compiles but i having lots of problem in it. 1)Whenever i key in my seat like A1, the loops doesn't work. It works only if i...
[no replies]
matrix
 
anyone knows how to make this script? We have matrix NxM.All elements are different.Pick lowest element in each line and find the biggest one of them,write his...
[1 reply] : Have you already tried coding? If you're stuck, we can gladly help. Pl... (by The illusionist mirage)
Classes
 
i have looks at class tutorials and dont understand a thing of it how would i put these into classes and how would i access tehm to change or edit them??? ...
[2 replies] Last: Thanks really helped (by Tristan101)
Card Game troubles
 
Hello everyone, I'm working on a simple WAR game to exercise the logic involved in programming something such as this. Using an array and numeric values 0-...
[8 replies] Last: Glad you found it (by mobotus)
by pinvpn
Unable to read/open the .dat file
 
Need help in reading a .dat file, i'm unable to open the file This program is for a Air Quality index detector, the AQI machine records the particle concent...
[6 replies] Last: The main thing is that I'm using xcode for my programming and in Xcode... (by pinvpn)
Help with do while loops
 
For some reason this loop is repeating no matter what the user inputs, also the while loop runs every time. I know the while loop isn't needed and their are eas...
[2 replies] Last: [quote=Dreilly]For some reason this loop is repeating no matter what t... (by The illusionist mirage)
HELP -Gcf NON-RECURSIVE FUNCTION
 
I don't know if its right, but I am getting the answer I wanted but now I don't know if I am doing the problem right, can someone tell me please? This is the...
[8 replies] Last: Recursive or iterative, one must still avoid division by zero. (by cire)
by enemy
How to write (rand)
 
Please is theere a way to write this shorter? int a=rand(); int b=rand(); int c=rand(); Many thanks!
[4 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> #include <vec... (by JLBorges)
questions
 
i am trying to get this code to work so i can ask questions. #include <iostream> using namespace std; int main () { char name ; char answer; ...
[2 replies] Last: Wish I could help you but I think your missing a few things: #include... (by gsundquist)
November 2013 Pages: 1... 5657585960... 80
  Archived months: [oct2013] [dec2013]

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