Beginners - April 2011 (Page 51)

Pig Latin Help
 
I am having trouble with this Pig Latin code. I want each word to be in Pig Latin, but I also want in one line. Can someone please help me with this? #includ...
[no replies]
Array error - "no match for 'operator[]' in 'map[i]'
 
Im not sure if this is a beginner question, but I definitely am a beginner so this board seems best. Im currently trying to work out a problem in a platforme...
[6 replies] Last: Thanks very much! The map is now passed to the input function and ever... (by norgent)
Spilitting a string and storing it into dynamically allocated double pointer array.
 
Hey, i want to split a string into individual words and then store each individual words in dynamically allocated double pointer array. #include <iostrea...
[no replies]
by ahboy
C MPI
 
#include <stdio.h> #include <time.h> #include <mpi.h> #include <stdlib.h> int main(int argc, char **argv){ int x, i, temp; int node, size; d...
[no replies]
question about switches and continue.
 
I'm not very familiar with either of these - I know how to use them, but I want to make sure that there aren't any bad side-effects from what I'm doing. If I...
[1 reply] : It's fine. (by hamsterman)
C++ game
 
My teacher has assigned up to do this assignment and I have been trying new things out for days but I cant get anything to work. So I decided to post on the for...
[4 replies] Last: If you haven't lost, the continue on line 112 prevents lines 114-121 f... (by hamsterman)
Writing Switch or for loop to read character stored in array and update balance ATM Program
 
Basically I Want to Write either A switch or if loop that iterates through multple array elements and checks if the account number is equal to the customer acco...
[no replies]
by jls36
int Length(char *s);
 
Can someone help me undrstand how to use this [int Length(char *s);] my teacher says This function returns the length of the null-terminted character string s b...
[2 replies] Last: thanks, I figured it out. My teacher wanted us to make or own version ... (by jls36)
Listening for keys UP DOWN LEFT & RIGHT (open gl)
 
How can I listen for the keys for UP, DOWN, LEFT and RIGHT? When I ran a test on this using the function below, I fount it hard to display the keys and I don'...
[2 replies] Last: with glut void Special_key_cb(int key, int x, int y){ switch( key )... (by ne555)
by Nohbdy
Pointer to undefined function value gotten at run-time, a way around?
 
// I'm practicing with pointers, first here's the code: #include <iostream> using namespace std; extern int * addCount_ptr; // Not sure if 'extern' is n...
[2 replies] Last: // Hah thank you very much. I used extern because I wanted to make it ... (by Nohbdy)
Displaying Korean text (한국말)
 
I suppose the picture will explain best. http://i1123.photobucket.com/albums/l542/Rufiofrancois/Problem.png I tried every single one of those Korean types of en...
[3 replies] Last: http://xoax.net/comp/cpp/console/Lesson45.php this page has a really g... (by Blessman11)
Delete certain couts?
 
I want to keep a title on the top of my program at all times, so I can't use ("cls") because that clears everything on the screen. Is there a way to permanently...
[2 replies] Last: Ah I see. 1. So in languages like DarkBasic Pro (What I first starte... (by snowboarder7)
Format output to table
 
The code I have written is suppose to present the data in two columns. The from temperature has to be right aligned. The left column is to be aligned at the...
[no replies]
Input validation - inputting character to an int variable
 
I'm writing a trivia game program that gives a menu of options. The way I organized it, the user inputs a value (read into the variable int user_input), and the...
[7 replies] Last: I have a similar problem. The way I thought to solve it was to use a s... (by Argetlam81)
Function with multiple datatypes
 
Can someone explain to me how I can create a function that returns a value based on a datatype. For example: // this function returns int int SquareInt ( ...
[3 replies] Last: Hey, thanks a lot guys! :D (by thepedestrian)
Please help!
 
Please forgive me, I am a complete noob that needs help with this program. The intention of this program is to retrieve a low and high temperature and an inc...
[5 replies] Last: Thank you for your help! (by MadRedCzech)
how i can switch it into two single array ?
 
int busStop = {25,50,89,67}; int ticketPrices = {20,15,10,30};
[2 replies] Last: you got it boss thanks (by malikrgc)
String to Int
 
Hi, I have an array with string values in there and I would like to transfer them into an int array. The values are Numbers. is there a way to do so? Thank y...
[4 replies] Last: Yeah, I had that problem before, when using strings. stringstream is a... (by Lynx876)
by Begin
Instantiate an array of objects
 
Hello, I want to create an array of object of class MyClass, but with different parameters for the constructor. My best move is: MyClass * my_array; my_array...
[3 replies] Last: @Athar: Thank you! I have a lot of reading with vectors, lists and deq... (by Begin)
Help with Void function
 
Hi, can anyone provide a little insight on some help with a void function? The purpose of my code is to count the vowels in a string of random letters and then ...
[16 replies] Last: don't worry about it. it doesn't make any difference to me :p I was j... (by Zap)
April 2011 Pages: 1... 4950515253... 55
  Archived months: [mar2011] [may2011]

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