Beginners - November 2012 (Page 3)

Getting large numbers as output
I'm trying to finish up my program, but I'm getting very large numbers as the output for the average...
[7 replies] Last: I wouldn't average the rows in the loop you're averaging the rows. Co... (by cire)
isn't the void function here is wrong?
#include<iostream> using namespace std; void main() { int x = {4,2,8,9,3,12,5,0,14,1}; ...
[1 reply] : return 0 with void does this look correct to you? (by Darkmaster)
by maroun
Hello, Is it possible to create an enum inside an enum ?? if yes please give an example !! thank...
[2 replies] Last: no, enums can't have more than 1 dimension. you can use several enums... (by Darkmaster)
by ab123
reference to array
Can some one tell me what does the following line mean? const Array<int>& abc; then I want to as...
[3 replies] Last: Thanks! :) That helped. (by ab123)
by alext
The console prints with weird spacing?
Hi, in a school-assingment I'm trying to print out movie titels and type (blueray or dvd) from an ...
[1 reply] : getline(cin, filmer .name) >> filmer .name; First you read a line an... (by Peter87)
Multiply using the shift‐add.
I need to build a C++ function that forces the processor to multiply using the shift‐add. The mult...
[no replies]
loop for partually filling an array and returning the number filled ?
I have an array of structures and user input for thr number of elements that will be added, I think ...
[no replies]
by butlej
While/Nested loops
Hey guys I'm a uni student and I'm new to programming, I've never ever used loops before and I've be...
[no replies]
by gtim
how can separate the date from input file into arrays?
how can read the date saprate from input file into 4 dynamically arrays without the '/' the input ...
[1 reply] : If your compiler is recent enough and supports C++11 well enough, I su... (by Catfish3)
What kind of pure c++ code without an API could communicate with hardware?
could i create a program that could say switch on and off my keyboard led? Im going to approach ne...
[7 replies] Last: That's right, the sockets API is a nice way to understand what goes be... (by gomesrod)
deleting vector
void Person::SearchDelete(int numDelAccount) { for (unsigned int i=0; i < accounts.size(); i++)...
[2 replies] Last: This seems to of worked, it has a little issue if it is trying to dele... (by LiamTrolls)
by zyhsu1
arrar and copy files
Dear sir: I have a sequence image files: from box0001.jpg to box0015.jpg, I want to cut box0001....
[5 replies] Last: Dear catfish3: Thanks! This is a big help! Best ze-Yi Hsu (by zyhsu1)
helpe me please
i use Linux MINT and i don't know how use VI on mode 'insertion'
[1 reply] : (by kbw)
Array Counting Integers
I am trying to figure out how to make the code below count the number of integers entered. My given ...
[13 replies] Last: You could use an array of ten integers, each one will hold the count o... (by Chervil)
Why is my code quitting?
When I enter "1" as the input for num_movies my code exits. Any ideas why? ~Henry void time_rea...
[2 replies] Last: Henry, It exits because you're initialising i to 0 in your main fun... (by MikeyBoy)
by jimm78
help with robot movement
in this program the figure is supposed to move left and right but the legs move faster when moving l...
[4 replies] Last: somethings gone wrong! i dont know what i did but now the robot moves ... (by jimm78)
Data Types - Ip - what holds it?
Hey guys so I am wanting people to be able to input an Ip. Though I can't seem to get a data type to...
[1 reply] : you need to #include <string> in order to use it: #include <iostream> ... (by coder777)
Modularity implementation ..?
How is modularity implemented in c++ ?
[1 reply] : a module is a compiler unit: An implementation file (cpp) or a library... (by coder777)
by nasser
need help
hi i want to make a simple calculater on c++ can any one help me i'm using visual c++ 2010 expres...
[4 replies] Last: of course there is always the famous stroustrop calculator (by Aramil of Elixia)
November 2012 Pages: 12345... 74
  Archived months: [oct2012] [dec2012]

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