Beginners - April 2014 (Page 47)

INFINTE LOOP IN SWITCH CHOICE
 
I keep getting an infinte loop somehow in my switch when I select case 3. Can anyone point out what I'm missing? #include <iostream> #include <fstream...
[5 replies] Last: Dhayden Thanks man I was totally missing that but that worked great!! (by JBIRD304)
PRINT ARRAY
 
I am trying to print an array using a menu system and select case. how ever when i select the option for display array it just returns the menu system. below ar...
[4 replies] Last: "Something is preventing me from walking to school today. Here is wha... (by SeiZa)
by XMIT10
COMMENTS ARE UNDERLINED
 
I CANNOT STOP HAVING ALL MY // COMMENTS FROM BEING UNDERLINED I'M NOT TALKING ABOUT RED SQUIGGLY LINES .... I'M TALKING ABOUT ANY // COMMENTS W...
[5 replies] Last: Thanks AbstractionAnon and LB ........ for Code::Blocks ... (by XMIT10)
algorithm
 
can some on give me a more complicated algorithm for this code my doesnt work. #include <iostream> #include <string> #include <algorithm> #include <cctype> #i...
[3 replies] Last: nvm i got it #include <iostream> #include <string> #include <algori... (by kmtompkins)
toupper works but tolower doesn't?
 
Hey guys! I was doing pretty well until I came upon this. Everything works but my program from convert upper to lower case letters. What am I missing? #...
[3 replies] Last: there are names for people like you Hayden. They're called saviors. Th... (by Kevin15663)
MAX ELEMENT IN An ARRAY
 
hi guys. i am trying to find the max element in a given row of a 2d array. I have this code but it does not work. please assist #include <iostream> #include ...
[4 replies] Last: haha ye my bad i noticed that error as well.fixed it (by yusufseedat)
Array of string with a recursive function
 
Write your question here. Hi Guys !! good afternoon. I need your help, I want do an array with recursive function, exactly like a function of fibonacci...
[6 replies] Last: I think I just ruined the moment for someone to use a bit of his imagi... (by SeiZa)
Copying a char into a char*
 
I have a class String and one of the constructors to the class is String(char c) where it will copy c into buf which is a char*. I'm having some trouble figurin...
[2 replies] Last: Like dhayden said: buf = new char ; buf = c; buf = 0; length = str... (by SeiZa)
by vgarza
execute program when information provided is not valid
 
I have a program that identifies either a cat or a dog. If anything other than that is entered the computer should reply something like - Sorry only cats and d...
[2 replies] Last: Thanks for your help - I'll try this (by vgarza)
by Junlo
Tic Tac Toe game help
 
Hello there, first of all thank you for taking your time to open this topic and trying to help me, I really appreciate it. Alright, so the thing is that I hav...
[1 reply] : Look closely at the code that checks if the top row is all the same: ... (by dhayden)
by cagan
c++ learner
 
Write your question here. hi guys, Firstly, I am a turkish (turkey) boy and i know some english. I hope my english enough to speak. I want to learn...
[14 replies] Last: Malbolge anyone? http://en.wikipedia.org/wiki/Malbolge Might as well... (by giblit)
Menu State problem
 
So I basically have three classes I'm working with right now. State, MainMenuState (which is a child of State), and StateManager that has the job to switch betw...
[5 replies] Last: [quote=kong288]I don't think I can just do this in my header: Button ... (by LB)
#define __RESOURCE_H__
 
Hi all, I'm a c++ beginner (coming from java) and I'm struggling to understand what the directive "#define __RESOURCE_H__" in the code below does. I underst...
[2 replies] Last: wow, amazing. Multiple inclusion avoidance has to be manually managed!... (by virtueed)
by a48
rand() not work correctly
 
hay all i'am new in c++ so i not know the standar library in c++ an so on, and when i use rand() method it's always show the same number why is that happen? t...
[2 replies] Last: ouch so the rand() is deprected. thank so much for help me <3 (by a48)
by Tr1al
Help with simple error
 
Hello all, I'm a beginner to C++ and having trouble with an assignment. I keep getting the error "Expression must be a modifiable lvalue". The program I'm writi...
[8 replies] Last: Oh my god, that worked. Cant believe i missed that. Thanks so much for... (by Tr1al)
dice generator question
 
i am writing a code that generates 5 random dice rolls and checks to see if there are 3 of a kind i am getting an error with the function for the dice roller th...
[5 replies] Last: That's because any statement between 23 and 24 is executed every time ... (by AbstractionAnon)
Vector of prime factors/Using large numbers?
 
Hi! I'm playing around with vectors and Project Euler and I can't seem to figure out why this code won't work. I'm trying to make a vector of all the prime fact...
[4 replies] Last: Ah, I didn't know about the square root rule for prime factors. Thank... (by ECEsasha)
problem with cin's failbit
 
I have something similar to the following: int number; char ch; cin>>number; if(!cin){cout<<"Error\n";} cin>>ch; entering a character when ...
[5 replies] Last: So you need to read only one digit ? Your program reads all consequen... (by MiiNiPaa)
What does this mean?
 
Hey guys! I wanted to start programming a simple 2D "Hello World" with SDL but I don't understand one this : "*". What does the symbol * mean? It's used in so m...
[6 replies] Last: That's a sign of tutorials that are of poor quality. I wouldn't recomm... (by Avilius)
Counting duplicate strings in a vector efficiently
 
Assume I have some function like void tallyList(vector<string> list) { cout<<"Tally List called!\n"; if(list.size()==0) { cout<<"the list is em...
[5 replies] Last: std::unordered_map instead of std::map could give you an O(n) in t... (by MiiNiPaa)
April 2014 Pages: 1... 4546474849... 67
  Archived months: [mar2014] [may2014]

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