General C++ Programming - September 2013 (Page 25)

by rax
C++ warning c4700 when compiling
 
I kinda know what this means, but I dont know how to fix it.. Any ideas? warning C4700: uninitialized local variable 'counter' used warning C4700: uninitializ...
[2 replies] Last: I agree YIKES!!! Thanks for your help... I hope I get better :-) (by rax)
error output?
 
hello everybody i'm using Lubuntu 13.04, Code::Blocks 12.11, GCC, and G++ so, i'm creating a little application based on SFML. it hides the console for defa...
[9 replies] Last: yes, it would be exactly that! thanks! (by Stauricus)
by Aceix
When to use C...
 
Hi all, From my experience in the field of programming, I've realized that languages are not just chosen for a particular job based on one's personal interest,...
[4 replies] Last: > I would like to know when to use C#, and when to use C++. Assuming ... (by JLBorges)
Pefect cubes
 
I'm doing this problem: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3304 I am getting an excess...
[3 replies] Last: @Matt2234 I tried out your program, and it worked great. I then chang... (by whitenite1)
vector causing memory errors on destruction
 
std vector seems to cause errors when destructing here some simplified code: #include <stdlib.h> #include <stdio.h> #include <vector> class Foo{ p...
[5 replies] Last: Thank you. I actually need the dynamic allocation since the int was ty... (by tuukka lah)
weird problem
 
{ int grade, total=0; double avg; char ans = ' '; string name; do{ cout << "\n\nEnter the student's name: "; getl...
[3 replies] Last: Thanks to both of you! <3 (by bits12345)
short question
 
hey can anyone tell me about the compiler turbo c++ , i want to use the variable array like a if we want to enter a constant of our own choice ..... plz help t...
[14 replies] Last: Yes, it is a pointer to float. The new line allocates n floats on... (by Duthomhas)
What is another name for a Vector inside of a Vector
 
What is another name for a Vector inside of a Vector . What is the name of this construct ? Would it be a Constructor Vector? I think this is a tr...
[4 replies] Last: [quote=mutexe]matrix (Mathematical, 2D) matrix is a special case, as ... (by keskiverto)
operator -- overloading
 
hello don'tn know why it doesn't compile #include <cstdlib> #include <iostream> using namespace std; class A { public: A(){x=0;} ...
[4 replies] Last: Ya I forgot about that, I'm glad you mentioned it because I was using ... (by TheBeardedQuack)
Conway's Game of Life Help
 
Hey everyone, I am making Conway's Game of Life. Here is what the assignment says: For this assignment you are to write a program, that plays Conway's game o...
[8 replies] Last: If you distribute a game, you include resources with it. For example, ... (by Mats)
setting device time...with c++
 
hi i got a assignment in which i have to write codes for execution of certain commands. one of the command is set_time. if user enters set_time 12:12:12 the ...
[7 replies] Last: #include <iostream> #include <ctime> #include <string> #include <sstr... (by JLBorges)
string help
 
Hi, Im doing a homework, which is about a graph of people, but Im getting 2 errors, hope somebody could help me: This is the header: #ifndef PERSON_H #defin...
[8 replies] Last: Propose to init your array like this: Person::Person(int numbHobbie... (by AlexDndz)
Help with the switch statement
 
Hello im writing a program that asks the user to input a number 1-10 and will transform it into the roman numeral of that number but it seems that its not after...
[3 replies] Last: actually i meant more quotes!!! case '''1''': should work well. in all... (by closed account Dy7SLyTq)
Cant Figure out how to fill cards in deck.
 
Here is my source code i am trying to write a function (fillAll) to fill all 52 cards in a deck and i would like to use my data struct for the function and make...
[10 replies] Last: Thank you everyone for your input i appreciate it and have a better un... (by dmkavanaugh1s)
C++ characters
 
I have been wondering what some of these characters are called in C++ (if they have names): # - Maybe "hash tag"? :: - I have no idea for this one....
[5 replies] Last: # is called hash. i asked this in a much earlier post and they said it... (by closed account Dy7SLyTq)
Error C2181: illegal else without matching if.
 
I'm making a number guessing game program and I keep getting the error: C2181: illegal else without matching if.
[5 replies] Last: Okay so I do that for all the else if inside the while? (by njleos3)
by rax
New to C++
 
Hi, I am working on a couple C++ projectsfor my class. On one of my projects I get this error "identifier not found" for maximumValue. here is the code that I ...
[5 replies] Last: Thank you all for your help.. I actually had to create a header file ... (by rax)
Random Number Generator
 
Hi. I want to program a program that produces a random number between 1-10, then if the number is correct, says like HEY GOOD JOB and if its not says try AGA...
[3 replies] Last: [quote=Lumpkin]You can get a random number 0 through 10 9 like this.... (by cire)
by Delgan
Retrieve the image from an URL and save it in an array?
 
Hello. I am a beginner in C + +, and I need help. I am trying to retrieve an image from its URL as an array where each box represents the pixel value of t...
[3 replies] Last: If you find this to be a bit tough, you might want to try a higher-lev... (by Stewbond)
by NDSE
Issue with C::B
 
So I've been reading and decided I would not only try to steer myself away from programming with Orwell Dev-C++, but Windows as well. I am trying to learn not o...
[4 replies] Last: http://www.cplusplus.com/forum/general/13162/#msg63354 (by Duthomhas)
September 2013 Pages: 1... 2324252627... 36
  Archived months: [aug2013] [oct2013]

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