Beginners - February 2013 (Page 28)

Help using random function!
Hey guys, so i want to make a database of sorts. Dont know if this is the proper definition, but what i want to accomplish is i want to have a whole bunch of c...
Feb 18, 2013 at 9:03pm
[2 replies] Last: [quote=MrBananas]My question is... Am I on the right track for this id... (by MrHutch)
Help creating function for simple program
hey guys, im trying to make a function out of the following code for(Z=0; Z < 3; Z++) printf("."); fflush(stdout); sleep(1); } From wha...
Feb 18, 2013 at 8:43pm
[3 replies] Last: Great! i figured it out messing around with your suggestion! Thanks! A... (by MrBananas)
Variables in system("") commands
So I want to make a windows KMS activator. The code would look somewhat like this: #include <iostream> #include <string> string input; string inpu...
Feb 18, 2013 at 8:37pm
[2 replies] Last: i agree with ne555 however to help with the problem you need #include ... (by closed account Dy7SLyTq)
by Sandz
Registered ID help
Hi, I was asked to design a program which reads in the ID and the data of 3 inputs of the registered ID. How do I go about doing it? Please guide me. ...
Feb 18, 2013 at 8:36pm
[1 reply] : You could do switch statements (by greenleaf800073)
how to terminate while loop and print values
This is an example from book: Go through this drill step by step. Do not try to speed up by skipping steps. Test each step by entering at least three pairs ...
Feb 18, 2013 at 8:23pm
[no replies]
Multi PC file
How do I make a program which can be read from another computer. I mean you insert some "information" and it can be immediately read from another computer. I wi...
Feb 18, 2013 at 8:19pm
[1 reply] : I mean something like a news source from which friends can read inform... (by closed account LAM21hU5)
by guiyii
question about filestream
I saw some tutorial pages on the internet about how to read files using C++ But I'm kind of confused because there isn't anything in code indicate where the fi...
Feb 18, 2013 at 8:07pm
[6 replies] Last: Ok, now I see Thanks very much!! (by guiyii)
Storing/Reading vectors to a file
Hi, I'm currently writing a program to store and read vectors to a file. These are my instructions: Save Vehicles - This should save all vehicles currently s...
Feb 18, 2013 at 8:02pm
[7 replies] Last: You can read and write to file the same way you write and read from th... (by Peter87)
Why isnt this program working properly?
For college practice for our midterm this week our teacher gave us a bunch of programs to create to get us prepared for the test so i created a few of them so ...
Feb 18, 2013 at 7:48pm
[1 reply] : You have two variables named i in the program. The first one int i = ... (by Peter87)
how to terminate while loop
Hi this is an example from Programming principles and practice book from Bjarne Stroustrup. #include <iostream> #include <vector> #include <algorithm> ...
Feb 18, 2013 at 7:40pm
[4 replies] Last: thanx for info :D (by lenc222)
by fusi0n
Adding to a string array
#include <iostream> #include <stdio.h> #include <conio.h> #include <string.h> int main() { std::string sonad ; int i=0,koht=0; int k=...
Feb 18, 2013 at 7:17pm
[1 reply] : bump (by fusi0n)
why is my program not running? (Borland C++ IDE)
I'm typing everything right, no errors, it even said success when i compiled it but when i run it it closes. HELP PLEASEEEE?!
Feb 18, 2013 at 7:17pm
[4 replies] Last: Nope, execute console programs from the console. Your IDE should prov... (by ne555)
Stack ( Linked list ). Error C2440 cannot convert from...
Hi, need help, I wrote a program with stack (linked list) with initialization, pushing and showing my stack. Problem with showing. Here is my C++ code: #i...
Feb 18, 2013 at 7:01pm
[1 reply] : //MySHOW() while (MyStack2 -> Value != NULL) makes no sense. You did... (by ne555)
Need help writing small program
This deals with bools Create a program that asks the user for their age. The program then outputs 1 if the age is 21+ (and outputs 0 if its under 21). So, fo...
Feb 18, 2013 at 6:51pm
[9 replies] Last: hey pav500 i think you are in my class and our professor strictly taug... (by qtypie80)
how to assign a string to integer..
i have a number into string and i want to assign it to an integer variable...plz help me soon #include<iostream> #include<conio.h> using namespace std; v...
Feb 18, 2013 at 6:21pm
[3 replies] Last: That's possible using std::stringstream: http://www.cplusplus.com/refe... (by Fransje)
by Sasso
While condition (cin != 0)
Hello everyone im new to c++ programming and just discovered this great site. Maybe one day i will be able to help other beginners like me. I do apology in adva...
Feb 18, 2013 at 5:52pm
[3 replies] Last: thx alot for your replies, im trying to understand what you said and a... (by Sasso)
Game - player vs. pc
So I have a game in which you insert how much items are in the pile. Then the player takes 1-3 items from the pile. Then the PC takes a random count of items ag...
Feb 18, 2013 at 5:10pm
[2 replies] Last: Thanks (by closed account LAM21hU5)
#ifndef
#include "list.h" #include "colorcube.h" #ifndef LOCATIONREC_H #define LOCATIONREC_H struct LocationRec { short row; short col; short depth; };//...
Feb 18, 2013 at 4:29pm
[2 replies] Last: I put everything from the #ifndef to the #endif in locationrec.h (whic... (by helmftw)
Manually Copying two C-Strings
Hey guys, got another conundrum for you. My wonderful college professor gave me an assignment which requires me to manually copy one c-string into another (amon...
Feb 18, 2013 at 3:35pm
[5 replies] Last: Your function mjcStrCpy is invalid, I showed you how to write the func... (by vlad from moscow)
N00bish question
Hello, I have a REALLY N00bish question: What is the highest number a float variable have?
Feb 18, 2013 at 3:25pm
[2 replies] Last: Thanks! (oh... I should've figured that out) (by Reeceboy1299)
February 2013 Pages: 1... 2627282930... 67
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.