
please wait
by sanchezz
converting string first char to int
|
Hey guys, I've only recently started using C++ for university and I'm having trouble with one particular part of the code. I'm trying to convert a particular p... |
Apr 29, 2013 at 8:51am
[1 reply] : To convert a single character to an integer you can subtract '0'. int... (by Peter87)
|
Insertion sort reading from file into structure |
I was tasked to write a program that will read the data from a txt file into a structure. i then have to prompt for what i want the user for input on what they ... |
Apr 29, 2013 at 8:39am
[3 replies] Last: Ah, I see... Ok, instead of using comparing operators > and <, use st... (by Nina Sma)
|
by beginner123
how to run a gui program in the background?
|
i'm trying to create a program that will run another program. but the program i want to run has a gui and i don't want the gui to be visible, i just want the pr... |
Apr 29, 2013 at 8:33am
[4 replies] Last: @keskiverto yes the GUI will be used but it will be used by another co... (by beginner123)
|
by science
QUESTION for all you great programmers
|
Do you think at 32 its to old to learn programming? |
Apr 29, 2013 at 6:49am
[1 reply] : Well u see I am not a great programmer just a beginner.But I guess the... (by cyberdude)
|
by Shilalydawg
Output isn't right...
|
Hi I've got a bit of code right here that reads a text file fine, but it doesn't cout anything other than the first line. Here.. int main() { vecto... |
Apr 29, 2013 at 6:33am
[2 replies] Last: Oh, I'm really sorry everyone, I'm an idiot and I had a comma at the e... (by Shilalydawg)
|
by nasser
debug error
|
a debug error pop up when output the result #include<iostream> using namespace std; int addition(int a,int b,int g=0) { int c; g+=1; c=a+b*g... |
Apr 29, 2013 at 6:27am
[1 reply] : I think it's because g has an invalid value. Initializing it to 0 migh... (by Aceix)
|
by kittycat
output to a .txt file. trouble
|
I am trying to write the output to a .txt file. I have the following code #include <iostream> #include <fstream> using namespace std; //Function prot... |
Apr 29, 2013 at 5:26am
[8 replies] Last: Makes perfect sense ! I have used the output to display only the aver... (by kittycat)
|
by Cluterbug
help with arrays
|
I am trying to figure out how to right a program that declares a 10 element double array, using one loop to read 10 values from the user and store them in the a... |
Apr 29, 2013 at 4:45am
[10 replies] Last: Well here's what I got. I need help to be able to use negative numbers... (by Cluterbug)
|
problem about putting prototypes in header files. |
Hey, guys. I am learning separate files, and when I try to putting a function prototype into one user-defined header file, i met a error. Plz help me see where... |
Apr 29, 2013 at 4:31am
[4 replies] Last: i faint... i finally find that my second file haven't been auto add in... (by closed account LUXNwA7f)
|
by lksnip
Need Help for simple calculator program
|
sorry for my english is poor i make simple calculator, and want to validate it, it is good but not meet my expectation. so the problem is 1. about first numbe... |
Apr 29, 2013 at 4:03am
[9 replies] Last: string input; bool error; double a1; do { erro... (by lksnip)
|
by becky5868
Deleting linked list from the beginnig
|
Hello, I am trying the delete all the elements in a linked list in the beginning. I used the following code, it seems like that it complied fine with ./a.out... |
Apr 29, 2013 at 3:04am
[1 reply] : temp1=head->getNext(); while(temp1!=NULL) { ... Here, in the cas... (by shacktar)
|
by sushiroll
course score calculation program
|
The program I am trying to get to work takes in a string student ID. 2 double test scores (max score of 200) and 7 double home work scores(max of 265) from a te... |
Apr 29, 2013 at 2:04am
[1 reply] : edited to make it easier to read (by sushiroll)
|
C++; 2D arrays? Plot points for graph |
Okay, I need some help finding the ---location--- of any value divisible by 3 in my createCoords function. And I know that the value "y" in my main function isn... |
Apr 29, 2013 at 1:38am
[3 replies] Last: To help log my coordinates, I'd like to use fillLocations to fill the ... (by bringer of poop)
|
by Benjamin43
Count vowels from user input string characters
|
I came across a few other entries to help me formulate this program. However, the benefit of the following program is that it implements a user-defined func... |
Apr 29, 2013 at 1:26am
[no replies]
|
by yayu
Linked Lists
|
Can someone explain how this works? I'm learning from a book but it either doesn't do a good job explaining or I can't grasp the concept. //Link.h clas... |
Apr 29, 2013 at 1:03am
[4 replies] Last: Thank you. (by yayu)
|
by Voldiemert
Vec2 Template Help
|
I'm working on an assignment and I'm a bit confused on what I'm supposed to do. I made a vec2d class previously for a different assignment. Now I have to make t... |
Apr 29, 2013 at 12:39am
[1 reply] : It should be very simple to make your class a template class. Read up ... (by Lachlan Easton)
|
by Maham Amjad
how to write a program using nested while loops
|
please help me doing my assignmnet, I have to write a program using nested while loops which will show the ouput as follows 1 2 2 3 3 3 4 4 4 4 and using t... |
Apr 29, 2013 at 12:34am
[2 replies] Last: #include <iostream> using std::cout; using std::endl; int main(){ ... (by eyenrique)
|
by Bawnawgwa
Completely stopping an animation loop?
|
Hey, so my character shoots a projectile. When space bar is pressed it enters an animation loop like: while(character .xCoord < 733 && collisionTest(thunderH... |
Apr 29, 2013 at 12:04am
[no replies]
|
by kittycat
console/cmd shuts down instantly !
|
Hi programmers ! I have resorted to everything from system ("pause") to cin.get() to even sleep. Yet I am unable to have the average at the end of the cmd scree... |
Apr 29, 2013 at 12:02am
[14 replies] Last: Thank You :) (by kittycat)
|
by SlatA
Easiest way to change color in bitmap
|
I was wondering what would be the simplest way to change the color of a bitmap image? |
Apr 29, 2013 at 12:00am
[1 reply] : Any idea from anyone? (by SlatA)
|