Beginners - April 2012 (Page 59)

by Ch1156
What dos this mean? (question about rand() and time)
 
I was watching a tutorial yesterday and i got this code which has helped me tremendiousley considering almost every program i want to build needs some randomizi...
[1 reply] : _In my case typedef long time_t; _& will take the address of the ope... (by ne555)
Conio.h Question
 
Hey guys here may be a dumb question but I am curious about this. When I want to use _getch(); to stop cmd from auto closing I use this method. But I was ...
[no replies]
Simple Encryption
 
Alrighty!! So I have an assignment ( it is supposed to be a simple one ....yeah right) the point of the assignment is to implement a one time pad. We finish...
[6 replies] Last: Thanks blacksheep! We were given : offset = (KeyLetter - 'A') + 1 ... (by bubbles)
NEED HELP FAST(CRAPS PROGRAM)
 
I cannot figure this program out. My teacher gave us a template to complete this program, but it's confusing and I have no time to go through it with him. Bad t...
[no replies]
Relating information between vectors
 
So this is my first post though I have been reading posts on here for the past 3 weeks. I am in a 4th week of c++ class. One of the homework programs involves c...
[1 reply] : Took me a few hours but I finally figured it out. Here is the part of ... (by GenericHbomb)
Combine Character Arrays
 
I have two arrays defined as follows char* str1; char* str2; what I want to do is to combine these two into one for example str3
[6 replies] Last: new char ... returns an uninitialsed block of memory. A string is nul... (by kbw)
DLL Function returning a string
 
Ok, I'm pretty new to the C++ area but not to programming. I program in various other languages and some of the basics are the same but a lot of it is not. for ...
[7 replies] Last: ok, so I got it working the following is the code in case anyone else ... (by madhatt30)
by jdoka
Sort algorithm for Pancake Glutton
 
Hi all, I'm new here and was just doing the Pancake Glutton beginner exercise. Anyway, here's the code for my sorting algorithm (it's a bubble sort, I didn't wa...
[2 replies] Last: I all new to this as well and haven't fully gotten the hang of classes... (by AbR)
by nnxen
Functions in separate CPP files (again, sorry)
 
I'm having trouble creating functions in separate cpp files to main. I've followed the simple example here; http://www.cplusplus.com/forum/articles/10627/ which...
[6 replies] Last: Excellent! Thank you! This is all starting to make more sense now :) (by nnxen)
by EeAA
build linked list from text file
 
Hello Everyone! I need help to create a buildList function that will build a linked list by inserting one int at a time into the front of the linked list from...
[3 replies] Last: help:) (by EeAA)
Question about header files
 
I am very new to C++. I have programmed a little in C. I thought I was familiar with header files. I had always viewed them just as code that gets copied and pa...
[2 replies] Last: I figured out the problem. I am in visual studio and I had to go to th... (by crobertsbmw)
Search for ideas.
 
Hi guys, I'm beginner to C++ programming, I know the basics and some advanced things. But I'm searching for some ideas of what to program to. I have made a No...
[2 replies] Last: I think it may help, I'm actually reading a beginner's book, and some ... (by fernix14)
Some help please
 
I need to create a program that out puts the following using loops: (0,0)(0,1)(0,2)(0,3)(0,4) (1,0)(1,1)(1,2)(1,3)(1,4) (2,0)(2,1)(2,2)(2,3)(2,4) (3,0)(3,...
[3 replies] Last: no problem :) (by oonej)
guys i need some help has anyone has the solution?
 
Write a program which will work as an arithmetic calculator. The program should prompt the user to enter the arithmetic operation that would like to perform, re...
[1 reply] : well we are not here to do your homework, but this isn't a hard task ... (by oonej)
Converting from one data type to another
 
Hi All, As a COBOL dinosaur from a more sequential world..... (Yes.... we do still exist.... No we are not a figment of someones imagination used to frigh...
[3 replies] Last: The correct way to do this is using bitshifting, e.g.: typedef unsig... (by Athar)
LNK2005 error.
 
So I have nearly got my head around multiple source files but I'm still stuck with this problem despite reading a few tutorials. I have a source file called ...
[1 reply] : The declarations may be in every program module but the definitions of... (by vlad from moscow)
Can't read and write the same file?
 
Hi, I'm trying to make a save game system for my text adventures. I have no experience reading and writing files, so I wrote a test program to teach myself: ...
[18 replies] Last: You would think so. VC++ and g++ differ here. g++ doesn't require th... (by cire)
by tate1
new to program writing
 
Write a program that uses a function to calculate the sum of all numbers from 1 to n then prints the result to the screen. The name of the function should be: s...
[1 reply] : Here you are:) inline int sum( int n ) { return ( n * ( n + 1 ) / 2 ... (by vlad from moscow)
Reading From Different Inputs?
 
I have a piece of a code that has 3 different inputs M <row> <col> U <row> <col> Q So examples the user would have to type in would be: M 0 1 U 1 2 ...
[5 replies] Last: Yet another easier way could be std::cout << "Input choice"; std::ci... (by Danishx83)
When would you use multiple cpp files.
 
I've been learning to program for a few months now in my spare time but I still have not come across a situation where you would need more than just a main.cpp?...
[8 replies] Last: One nice thing about multiple cpp (source) files is that many compiler... (by Stewbond)
April 2012 Pages: 1... 5758596061... 66
  Archived months: [mar2012] [may2012]

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