Beginners - April 2012 (Page 36)

Is there a difference in (void) and ()?
 
The tittle is a little vague, let me elaborate. Is there a difference between these two functions? int ShowValues() int ShowValues(void) What is the v...
[3 replies] Last: Hmmm...interesting. I never learned any programming languages other th... (by voyance)
Needing tip with multiple deque.erase
 
Hi everyone! I'm working on a little project, that in general terms, interacts with a .csv file with two columns (it's a kind of dictionary, so let's say word a...
[3 replies] Last: You're welcome :) (by TheDestroyer)
Use of enum's?
 
Can someone please explain to me the real valuable reasoning behind using enums. At face value to me they seem kind of pointless, not pointless but more or less...
[1 reply] : It just makes life easier for periodic events, like weekdays, months n... (by TheDestroyer)
Need help with a vector of vectors
 
Hi all, I am trying to work with a vector of vectors... just trying to do basic operations with it. Eventually, I'm going to use a vector of vectors to code a ...
[8 replies] Last: Thanks Destroyer and Stewbond for the life raft ! That one had me tot... (by iDontGetIt)
Linker error
 
I am getting an error when calling upon my function choice I cannot seem to figure it out, any help would be appreciated. choice in theory will take the input o...
[2 replies] Last: replace int choice ( int response()) with int choice ( int respons... (by Stewbond)
Using strchr?
 
In a winsock program, I'm making, the client recieves a stream of data that is then put into a char buffer the different parts of the stream are separated by...
[1 reply] : I'm not sure if you're using c++ or C, Here is what I would do, but it... (by Stewbond)
Declaring pointers to an array... or something?
 
I've been working on a little home project to increase my skill as a programmer. It's a basic inventory simulator, however there's one section of code in the p...
[6 replies] Last: string* pszArr = new string ; ^ ^ ^ ^ ^ ^ | | ... (by Stewbond)
Find error plzzz...
 
FInd Error plz....when we ask user whether he wanna continue or not he enters y but program ends but according to code it should bounce back to code....Problem ...
[3 replies] Last: speacial thanks to "LowestOne" and as well as "TheDestroyer" code real... (by programmerx)
by pooshi
Matrix with srand
 
What up Gents? I have this code here and I wanted to use srand() to fill it instead of my own literals. Where would I put and how would I use the srand()? And ...
[2 replies] Last: To add to what oonej said, srand() is used to seed the rand() function... (by BlackSheep)
My first program
 
Hello, I am very new to C/C++ and any programming language and I am attempting to write a program. The code I am going to post is part of a larger program which...
[10 replies] Last: .... if (dis < 0) { imag = sqrt(dis); imaganswer1 = (-b+imag); imag... (by nerdycameron)
need assistance on setting up arrays
 
I am trying to learn arrays and having issues creating the arrays I need to keep a program running. I am asking for help from anyone who can show me how to set ...
[15 replies] Last: [quote=altbdoor]i had hoped to focus on making dsustudent59 understand... (by S G H)
Dice game?!!?I need help with EVERYTHING!! (1,2)
 
Hi I have to not wan to but have to take C++ as my course we are given this homework, CAN YOU PLEASE HELP ME!?!? I will be forver gratfull!! You will deve...
[21 replies] Last: Off of the intended topic, as a mechanical engineer programming is VER... (by Stewbond)
by Atari
Need help with function.
 
Hello, I wrote a program, witch finds how many digits 2 appear in the number and then multiplies them. But I don't know how to write a function for this. Coul...
[3 replies] Last: Something like this? #include <iostream> using std::cin; using std::... (by Stewbond)
Expected primary-expression before ',' token error
 
Hello and thanks for taking the time to help me. I am writing a program that prints a dagger-like design to the screen but I keep getting the above error for my...
[3 replies] Last: Thanks a lot guys! I thought it would have been something silly like t... (by mysterioscone)
Football ticket reservation
 
hello guys, i'm a beginner user of c++, recently i need to build a system based on football reservation. The system allow user to book and cancel their ticke...
[13 replies] Last: https://docs.google.com/open?id=0B5JGUxzaMyuJUENzZGdoeVI2a3M https://... (by hankydorky)
Division function returns int.
 
#include<iostream> int add(int a, int b) { int sum; sum=a+b; return sum; } int sub(int a, int b) { int sub; sub=a-b; retur...
[2 replies] Last: thanks! (by cplusfreak)
Help using 'while' and 'for' loops
 
I've recently started learning programming at university and I've been asked to write a C++ program for the following problem: "The program will keep asking ...
[1 reply] : I don't see any problem. 3 2 +...+8 2 = 199. Could you be that you mi... (by hamsterman)
My 1st programme?
 
after some trying and testing and scratching my head i managed to come up with this ..... // my test project #include "stdafx.h" using namespace Sy...
[11 replies] Last: I personally think C++.NET is a joke. .NET is good in c# and VB, but s... (by ResidentBiscuit)
trouble with writing loops
 
Been having trouble creating a simple loop program. One my third attempt using a fully new code. Function headers are keeping me from testing this first loop. ...
[3 replies] Last: He forgot () wherever necessary, but wrote it everywhere where it is u... (by Shinigami)
by Yume
Problem with strcmp
 
The problem says that if we are given a text we have to post every sentence on a new row. And we know that the sentences are sepparated only with "." and "!". F...
[3 replies] Last: I used the strtok function and it worked now. Thank you! (by Yume)
April 2012 Pages: 1... 3435363738... 66
  Archived months: [mar2012] [may2012]

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