Beginners - November 2012 (Page 15)

by robink
Codelab: Loops with strings
 
/* Take as your starting point the program you wrote for UNIT-00110. MODIFY that program so that, for each state, it looks at all the polls in the state ...
[no replies]
by Kodieh
Infinite Loop...sometimes?
 
It's a simple predator prey simulation, and checks to see if the positions of the predator and prey are the same. It catches it some times, and others infinitel...
[2 replies] Last: cant be bothered to run your code cos those numbers up the sides are h... (by devonrevenge)
I don't understand this program!
 
// Inventory Displayer // Demonstrates constant references #include <iostream> #include <string> #include <vector> using namespace std; //parameter...
[3 replies] Last: & here means that the argument is passed by reference. It's used here ... (by Peter87)
Please help me!
 
I have to write a program that checks the spelling of all words in a file. It should read each word of a file and check whether it is contained in a word list....
[4 replies] Last: Umm.. Yeah that looks relatively familiar. I'm sorry, I am really bad ... (by sbgreen6592)
Error finding
 
i had to do a simple program that takes the user char input and makes it backwords. i basically have it but it prints out these other charatures before it. h...
[2 replies] Last: You didn't consider that your word might not use the full array. Incl... (by toum)
arrays,rand,average
 
I am trying to combine a few functions in 1 program. I am first trying to create a n array of size 6 to generate random positive two digit numbers. Then I want ...
[1 reply] : 1) its #include 2) you need to include <random> (for srand() and rand(... (by MiiNiPaa)
Arrays and Random function.
 
I am trying to write a function with an array size 6 and each element of the array is a positive two digit integer. What is wrong with my code? #include <ios...
[3 replies] Last: ok i pretty much got it, i just had a question my array if of size 6 a... (by chiquitina21)
by fiko
kendi cmath kütüphanem
 
How to create your own library, using math library CMATH
[no replies]
Why does this program only print when there's a newline?
 
Hi, I've written a program to calculate RAM usage on a Linux machine, and I've experienced some strange behavior trying to output the results. The code is as...
[4 replies] Last: Oh ok, that makes sense. Thanks again. (by kirbyman62)
almost the equal objects
 
I need make the vector from the objects type class My_class { int x; void fn_x(int x); } but for each object fn_x is diffirent void fn_1(i...
[3 replies] Last: I presume this is a simplified example, otherwise simply storing the a... (by cire)
reading and displaying txt file
 
Hello, I'm trying to have my program read a txt file that's in the same directory as the exe in visual basic. All I get is a blank screen when I run the program...
[12 replies] Last: This is solved. I just didn't have the file in the right spot in visua... (by cheshirecat)
GUI Money Conversion
 
I need to create a GUI program that converts different currencies (5). I basically already created the skeleton of the program with menus with in and out boxes....
[no replies]
Catching the return value of a function
 
I'm sure it can be done and I just need someone to show me how, please. I have an int function which I use to shuffle values in an int array. I call this first...
[8 replies] Last: What do I need a final return statement for. The will be no chance of... (by Chervil)
Error :]
 
#include <stdio.h> int main(void) { int x; float sum; float grade; float avg; x=0; sum=0; scanf("%f",grade); sum=sum+grade; x=x+1; if(x==30) avg=s...
[18 replies] Last: @vlad from moscow You have my apologies. I was incorrect, you were cor... (by Thumper)
??? what is arr[i]
 
what is arr
[5 replies] Last: thank u, thank u so much Chervil n peter.... it is very stressful to c... (by Stunning)
What to do when I don't get something?
 
I don't really get using functions with parameters, I get basic function work but not with parameters. I've tried creating a programming, but I'm not sure what ...
[2 replies] Last: Read the tutorial pages http://www.cplusplus.com/doc/tutorial/function... (by Chervil)
matrix
 
can some1 tell me the source code for this matrix: 1 0 0 0 1 0 0 0 1
[3 replies] Last: i thought (if (j=i) aij=1 else aij=0) if u understand what i mean cuz ... (by albanick)
GUI Calculator
 
I'm new to programming and joined a class at a local college, I'm only looking to see how to work this out. I am completly new to programming, and the teacher t...
[1 reply] : Here's a calculator that I have done that might help you with some cal... (by DJLad16)
i have put off using multiple files for way too long but i get stuck here, why?
 
so i have a function in bunny.cpp, its prototype in the header and i call it in main like so... here is main.cpp #include "iostream" #include "saystuff.h" ...
[3 replies] Last: how do you tell your linker to do said thing (by devonrevenge)
November 2012 Pages: 1... 1314151617... 75
  Archived months: [oct2012] [dec2012]

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