Beginners - November 2013 (Page 20)

Help a beginner with looping
 
Hello, I'm trying to come up with a little calculator for a specific equation that has to do with sigma. SQRT(r^2-x^2), where r is a constant (input as radius) ...
[8 replies] Last: For reference, you could use the floor() function. http://www.cplusplu... (by Chervil)
setw error
 
Write your question here. it dose not display the first three digits followed by zero instead show other three digits #include<iostream> #include<iomanip>...
[2 replies] Last: 0331 - this is interpreted as a value in octal notation, rather than d... (by Chervil)
How to check if to UINT64 are equal
 
I have been trying to compare if two UINT64 are equal what am i missing. I am trying to do the following "if(count() == static_cast<UINT64>(4571))". Please do ...
[no replies]
by Nefri
Opeing file from another directory.
 
Hello, again :) I have problem with opening file from other directory. If i have txt file in other directory and main.cpp in root I don't have problem wit...
[5 replies] Last: Try it without the first '/' example: string filename = "../../input.... (by Chervil)
Pass Values from Function to Main()
 
This application sorts occupations by salary and prints these values to a sorted table. It also calculates the average and median salary based on the input data...
[3 replies] Last: I haven't had a detailed look at your code, but the following function... (by ShodanHo)
Help me in 2d Char array
 
I am trying to make a periodic table using 2d arrays I WANT to make a program in which compiler gets input and user input the symbol of the element and the who...
[no replies]
help me
 
hi,i write this program to sort 7 numbers,tell me my mistake. #include <iostream> using namespace std; void milad(double * a,double * b) { if ...
[8 replies] Last: Seriously, why use double instead of int? Erm... presumably because... (by MikeyBoy)
while & if help
 
Hello i tried to solve this but i cant , the program will read the content of text file named (letter.txt )and determine number of capitals and number of sma...
[5 replies] Last: thank you very much (by max v max2)
Errors fix
 
Hi! I am nearly done with this code that needs to read from a text file. However, I keep getting a few errors and I am not sure how to fix them. The errors re...
[5 replies] Last: What errors are you getting? If you don't #include <cstdlib>, you'll ... (by tipaye)
Array Parameters? HELP PLEASE!
 
Anyone please tell me what is wrong with this code. Watched one of the youtube videos and that how they created the void function using arrays. No, I didn't co...
[5 replies] Last: NT3, I got an error on your second void function without the pointers... (by fahmankhan75)
Array of Structure
 
Can you help me to get with this output? Enter No. of candidates :3 Enter Name of candidate 1:obama Enter Name of candidate 2:bush Enter Name of cand...
[7 replies] Last: Here is my new code. Im having a trouble with the total. It just compu... (by Vanessa101)
Help with sentinel value and loop.
 
Hello everyone. I am writing a program to convert various temperature types with user input. My program compiles fine, but the values are stored after each loop...
[1 reply] : ((temp = cin.get()) != '-999') should be temp equals cin.get() ... (by gamemaker96)
Need help with return Values
 
So I have this code in which I know everything works, except the return value for my two integer functions. I have calculated what I wanted to know, and already...
[2 replies] Last: That ends up with my while loop not working, "error: value of type 'vo... (by hanipman)
convert 1-d array into table
 
This program is to copy the elements of the 1-d array A into a 2-d array of k rows and j columns. #include <stdio.h> #include <iostream> #include ...
[no replies]
Homework help
 
Hey guys new C++ college student here needing help with an assignment. I have to display the letter grade obtained from the average of the scores and the lowes...
[1 reply] : Line 70: don't loop on EOF [code firstline=70] while (infile >> sco... (by Duthomhas)
variable and loop problem(short code)
 
Hi! I have this kind of problem: I implement the global variable " currentTime = k * dt;" . Then i use this variable in function and don't know why currentTime=...
[1 reply] : A very common beginners mistake, is to assume that an assignment is an... (by xismn)
How it works?
 
I have a question about the implementation&interface in different free libraries, such as GNU Scientific Library. But this is just a common question, not conc...
[3 replies] Last: Most of the time, the implementations are housed in static-libraries (... (by xismn)
Using Cygwin g++ and an IDE
 
I am attempting to compile via cygwin's g++. First, i put cygwin's bin directory in Windows's Path variable. C:\Users\micah_000>vim test.cpp C:\Users\micah...
[no replies]
Largest/Smallest Array Values
 
write a program thats lets the user enter 10 values into an array. the program should then display the largest and smallest values stored in the array. am i ...
[1 reply] : Shell: #include <iostream> int lowest(int , int); int highest(int ,... (by mobotus)
by ckl3
Form a box using words
 
I need to write a C program that prints a rectangle to the screen with a blank space in the four corners. All I can do is a rough idea of how the program will l...
[no replies]
November 2013 Pages: 1... 1819202122... 80
  Archived months: [oct2013] [dec2013]

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