Beginners - November 2008 (Page 7)

i need a code for takin input fo 2 secs
 
Hi i am bilal n i am new here i need to make a program on Human simulation....... Well what i need is a code. when i am executing a program like am printing '...
[8 replies] Last: Thanx guyz! This really helps well but i now get another command of c... (by chaudharybilal)
Problem with some compiler messages....
 
Hello everybody!! I have written a program but I cant overcome some compiler messages. Here is the code: #include <cstdlib> #include <iostream> #inc...
[14 replies] Last: Ok,I found it.Wrong argument was the mistake. thanks for help anyway (by DarkFire21)
Infinite loop...
 
// prac04-6.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> #...
[no replies]
Infinite loop...
 
// prac04-6.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> #...
[no replies]
Program Crash in Vista reading txt file
 
I am doing a school project, working on a program which is used to analyze and display information from a text file. The skeleton program was written for me (I...
[1 reply] : The above code looks like mainly C with one or two lines C++ first ... (by anders43)
Pointer: is it pointing to an alphanumeric character?
 
Hello guys. How might I go about deciding if "ptr1 points to an alphanumeric"? That's the condition for a loop in an assignment I have. I am trying to...
[2 replies] Last: or ! ispunct( int ) (by anders43)
array min value
 
I have a task where I need to find the minimum number in the array. and function must start with this : void min (float table , int size, float & value, i...
[15 replies] Last: void min(float table , int size, float &value, int &index) { ... (by anders43)
Infinite loop caused by string
 
I put a string in to the following program so that I could output the full employees name. After input it works perfectly but if i continue the loop with 1 ad t...
[1 reply] : Please edit your post using the code tags and with proper indentation,... (by mahlerfive)
Random Number Array
 
Hello, this task requires me to do a few things. 1) Fills two integer arrays of size 10 with unique random numbers in the range of 0 – 50. 2) Sorts ...
[2 replies] Last: Because the arrays are sorted from the previous steps, the union and i... (by mahlerfive)
useful for beginners
 
this site is useful, for I myself learned the step by step process of C++ programming, i just want to thank you guys for creating an useful site for newbies ^^
[no replies]
How to make the console go away.
 
/* Hello people. I'm here for some advise. About ten years ago a had a stroke and I am still affected by it. Before that I was a network analyst for a local c...
[8 replies] Last: Hmm, I thought you wrote that routine. Basically it is checking eve... (by Duthomhas)
Compiler
 
Hi, I got a the book C++ Primer Plus 5th edition. It says it uses Microsoft Visual C++ 7.1 but can I use a other one like Microsoft Visual 2008? Thanks for taki...
[2 replies] Last: Thanks (by willia23)
Declaring Global Variable Inside a Function
 
How do you declare a global variable inside a function. The reason for being able to do this is so that I can use a function to initialize a bunch of things ...
[5 replies] Last: I think if your looking at global variables you should consider an alt... (by Zaita)
saving files in C++
 
I have managed to save files in c++, and they turn out as strings. is there any way to save a float, and then load the file as a float? heres what I need it for...
[4 replies] Last: I think the problem I have with mine, is that everything revolves arou... (by BHAdmin)
Class- a private variable issue:
 
Hello, This is my first time posting, sorry if I make a mistake :( I have made a basic class program to test out the use of private and public sections. ...
[5 replies] Last: also i would just not have the are variable unless the assignment tel... (by simply thunder)
can someone explain this error?
 
using recursion im trying to get the factorial of any number. this is my code: # include <iostream> using namespace std; unsigned long factorial(unsigned in...
[1 reply] : Extraneous semicolon on line 12 Also one on line 14. (by jsmith)
Having trouble with a assignment.
 
I have an assignment for beginners c++ class and I need to figure out how to search in a .txt file and search for the specific ID the user enters. For examp...
[3 replies] Last: I would use a class: class item { public: int amount, i... (by Bazzy)
by sacred
Is binary search possible with Vectors?
 
I've been trying to implement it all day. But can't seem to convert an Array based bit of code. int binarySearch(int sortedArray , int first, int last, int ...
[2 replies] Last: Note that binary searches require the container to be sorted beforehan... (by seymore15074)
c++ best compiler
 
Dear Sir which is the best compile for c++. i am using turbo c++ but it is not industry orinted . is the dev c++ is good i am a window user please ...
[3 replies] Last: I thik Code::Blocks is a very good IDE: you could select the com... (by Bazzy)
How do I read spaces in a text file?
 
I am attempting to read in a text file and loop through each character of the file as I will be modifying each character as it's read in. I noticed that all th...
[2 replies] Last: You can also just turn off the skip whitespace flag: inFile >> nos... (by Duthomhas)
November 2008 Pages: 1... 56789... 19
  Archived months: [oct2008] [dec2008]

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