Beginners - September 2012 (Page 49)

Java Vs. C++
 
Can Somebody Tell Me The Main Differences Between Java And C++?This Is Also A Disscussion:Which Is Better???
[2 replies] Last: @Techy24 : You didn't search much, did you? There is actually a whole ... (by R0mai)
Unexpected program end
 
Execution of the following code drops to the system prompt after the point where it displays Enter text: . Why? Thanks. #include <iostream> using nam...
[5 replies] Last: @firedraco IIRC, the console reads information directly from the OS, u... (by Volatile Pulse)
use getline as argument in while loop
 
I want the user to be able to put data in to my vector by using this while-loop, and when the user enters 'end' the loop breaks. while ( getline(Value) )...
[2 replies] Last: Thank you! How stupid of me.... =) (by Hashimatsu)
array of struct function not working
 
Please don't give me code - this is an assignment. I need help determining testing this as I am not getting any compiler errors, but I know something isn't rig...
[2 replies] Last: LOL - well I started to write about how I was passing the fileName to ... (by badkaykay)
by Dreads
srand funtion?
 
Ok so I have been following a tutorial on youtube and trying to get my feet wet. I am having a problem in understanding the srand function. It's your basic ...
[2 replies] Last: What is ("PAUSE")? Drop the 's' in front of 'srand' here. ... (by DesiredNote)
a really large allocation
 
Hi, I'm having an issue with an allocation error. I have a very large integer nwk that is an unsigned long. I want to dynamically allocate an array of length...
[5 replies] Last: That's exactly what I'm trying to know (in order to provide an useful ... (by ne555)
Problem Solving
 
Hi All, I am new to programming.. learning some code in order to hopefully transfer departments. I am finding that writing the code and getting the progra...
[3 replies] Last: Download/Buy (depending on budget) a good C++ book (btw there are very... (by Script Coder)
Seperation of Class into Files Problem
 
Hi all, I'm an absolute beginner to C++ and I am trying to separate my classes into different files i.e. "Nation.h" (declaration), "Nation.cpp" (implementation)...
[10 replies] Last: So if I have many objects nation1, nation2, nation3, etc of the Natio... (by ne555)
clrscr was not declared in this scope
 
Hi, I am using code::blocks compiler, the command clrscr(); is giving error below error "clrscr was not declared in this scope" Kindly...
[2 replies] Last: You need to #include <conio.h> for the proper compiler -- which is not... (by Duthomhas)
advice: finding the nth prime numbers
 
Hi, any advice would be appreciated. Currently this program has a lot of problems and I think I'm probably going about doing it all wrong. what I'm trying to...
[2 replies] Last: Reworked the code a bit. Making some progress, but still not working l... (by frog030)
My First Time
 
Hello to all fellow programmers, I did not happen to see a "welcome thread that other forums have so I decided to create a post, I am a beginning program (NEWBI...
[3 replies] Last: Thanks for the replies you guys :) !, I really want to create differe... (by Cplusmayn)
Three basic codes (I think)
 
Hello Having just finished my first teach yourself C++ book, I’m now trying to have some fun creating. I’m still trying to get my head around some functi...
[5 replies] Last: Hi there, You are presumably reading the input from the user into an ... (by closed account o3hC5Di1)
Sales Calculator Problem (Visual C++ express)
 
Good Day All, I'm new to the forum and new to coding (period.), and was looking for some help. This question pops up alot around the web, but because C++ ...
[3 replies] Last: I have drafted a final solution that ran successfully. Thanks again (by BroccoliCode)
Simplifying my mess :S
 
Hi guys I have a class called board in which I wrote a really messy function printBoard and another one called printBDrop which do almost the same thing. I can...
[6 replies] Last: "how does it change with another player" if i had to continue this: ... (by fuerchter)
Logic programming to Android Apps
 
Hi, I have just finished a very useful book on C++ coding. I feel I have the basics locked down in terms of logical programming. The step I want to take now ...
[4 replies] Last: Hi there, QT is widely recommended as one of the best available cross... (by closed account o3hC5Di1)
Searching a file for alphabetical order?
 
Hey all, I'm trying to write a console program in C++ that will search a list of words from a file (a dictionary word list), check them to see if they're in al...
[7 replies] Last: OK, I've tried debugging the code and stepping over it line by line. E... (by tshirtwisdom)
Problem using if statement
 
I'm writing a program for my beginner level C++ class, and I decided to venture ahead and try out if statements. The program is supposed to convert an uppercase...
[3 replies] Last: Thank you both so much. I figured my conditional statements were reall... (by mahtale)
by xzbit
write to file
 
hi, im trying to write a string in the 3rd line without writing or deleting any string in the 1st and 2nd line e.g. line 1 line 2 line 4 i tried ofstrea...
[2 replies] Last: is there a possible way if i could just parse the 1st 2 lines then wri... (by xzbit)
by vrakas
Quicksort or Priority queue
 
I am facing this problem very often. I produce some answers that i have to sort. What is best? -making a priority queue where i push all the answers(and then p...
[3 replies] Last: > How do you iterate over std::priority_queue? Oh, I can't! - at leas... (by JLBorges)
by Snipez
Filling array with random numbers
 
Hi guys. I am making a game called Bejeweled, I thought I would start this by making an array with random numbers from 0 to 4 (for the 5 gems). I would then tra...
[11 replies] Last: Hi there, Yes, when you declare an array as such: int board ; You... (by closed account o3hC5Di1)
September 2012 Pages: 1... 4748495051... 62
  Archived months: [aug2012] [oct2012]

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