Beginners - February 2014 (Page 49)

by qmzh85
How to disable GNU extension in Code::Blocks?
 
Dear all: I am using Code::Blocks 12.11 on Ubuntu. Since Code::blocks uses GNU compiler which has language extension, how can I disable this feature? For exa...
[5 replies] Last: Are you using an old version of GCC? Current versions do support the... (by JLBorges)
by birs1
help with cstrings lib
 
I am writing a code for a hangman simulation and When using strncmp I know that I'm comparing two const char* but when I set the max num to compare lets say len...
[4 replies] Last: initialized newWord = 0; still says the same error (by birs1)
by joon2k
Help while coding a tictactoe program
 
I know the code is quite messy... but I think I've wasted about 9 hours trying to find out what is wrong with the code so plz help... I made the 2 player tic...
[no replies]
Help with loops
 
So my program doesn't seem to follow the correct loops when I compare the code I wrote to the code that is actually supposed to happen. We're given a .exe file ...
[3 replies] Last: I think this is your problem: cin >> xa >> xb; shouldn't that be c... (by giblit)
Findwindow function
 
I have used this function before but now the window i want it to locate boots up as a bin instead of an exe. I am guessing this is the reason behind it no loc...
[no replies]
Errors within .h and main
 
Okay, I'm working on an assignment that is supposed to accept input as roman numerals and convert it to decimal form. I'm supposed to create it as a class and i...
[14 replies] Last: @ne555 Very good that is much easier, my poor excuse is probable hypo... (by TheIdeasMan)
by Kay94
Using a pointer to a struct in a function
 
Hi there, as written above i'm trying to use a pointer to a struct in a function. But somehow i can't dereference it. Either *pd.name, nor *(pd.name) worked fo...
[3 replies] Last: No worries, hope you have fun & learn heaps :+) (by TheIdeasMan)
Problems with includes/object of a different class as a private member
 
In trying to make a simple emergency room simulation I'm having some errors compiling. I want an array of PatientType objects as a private member of my ArrayTyp...
[1 reply] : > but I'm getting "In file included from errors" http://www.cplusplus.... (by ne555)
Comparing memory location help
 
Hello all So basically what I am trying to do is read in input from a class, and compare the two to sort them in a bubble sort algorithm. The problem I have...
[1 reply] : If you ever find your self comparing the actual memory addresses of po... (by Computergeek01)
Detecting char when int is desired from cin
 
While I'm in school and studying C++ this is not a question that is part of a homework assignment, just an oddity I came across and I'm wondering how to solve f...
[no replies]
Im really new to C++
 
How long will it take me to get somewhat decent at c++ if I practiced around roughly 1 - 2 hours per day? My goal here is to learn allegro or sfml. I do not wan...
[6 replies] Last: I can accurately tell you 2-10 years and that 10,000 hours stuff is no... (by closed account iAk3T05o)
by Chubby
Bubble sort help
 
here is output of random number: 83-42-46-80-69-75-22-83-63-70 41-65-49-68-63-46-55-61-95-5 89-27-57-35-11-25-11-52-22-6 int sorting_array ; int swap ...
[4 replies] Last: i got it !! (by Chubby)
Desperately need help with Prime Factorization program
 
I'm in a first level compsci class in college and the teacher is horrible. I have no idea what I am supposed to do in this program where "Your program is to ...
[1 reply] : Sounds pretty straightforward to me. Program should accept input integ... (by ResidentBiscuit)
Empty Arrays?
 
Hello! So I've written some code for a Go Fish program, and like the actual game of go fish, I want to add a card to the hand if they have to go fish, and take ...
[3 replies] Last: Thanks a bunch! (by Pacopenguin)
string substitution
 
Hello guys am in a little conundrum here. I have this program that i am working on. As you can see it opens up a file and displays the content of the file. Now ...
[no replies]
Iterators
 
Will this point at the null character or ine past that string sv = "Hello"; auto svend = sv.end();
[7 replies] Last: Thank you guys, nooby here so yea. Thanks (by closed account EwCjE3v7)
by thepox
Something Very Weird is Happening
 
First of all, I would like to, before hand, thank anyone who is willing to help, as it means a lot. #include <iostream> using namespace std; int main() ...
[2 replies] Last: > I am using codeblocks with GNU GCC Compiler. This looks like a com... (by JLBorges)
Would be happy if anyone could share some knowledge. Cheers
 
Hello! Just started studying programming (in c++ with visual studio). And I REALLY need help with one assignment, I'm new to this so yes. I suck at it, any help...
[2 replies] Last: Divide goal by 365 (by closed account iAk3T05o)
Read input word by word
 
I was given an exercise to write a program that counts how many words read begin with a vowel, consonant, and others(non vowels or consonant). I wrote this topi...
[1 reply] : Read the entire line into a string, make an istringstream from that st... (by LB)
SDL2: "Simplest" way to change window BG color
 
I already searched google multiple times and got varying answers that were either in a completely different context in my problem, or pertained to an older vers...
[6 replies] Last: http://www.google.com/search?q=g&oq=g&aqs=chrome..69i57j69i60l4j0.546j... (by Avilius)
February 2014 Pages: 1... 4748495051... 60
  Archived months: [jan2014] [mar2014]

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