Beginners - October 2013 (Page 21)

does the interpreter execute commented out lines ??
 
i am commenting out sections of code, rebuilding starting from bootstrap, and the lines commented out are still being executed. wth is going on here ??
[11 replies] Last: 100 fill(out + n, out + nof_output_items, 0.0); 101 } ... (by density)
pointer to 2d array
 
how to use a pointer to point a 2d array? i have tried some code what is wrong in it ? can anybody explain these things in detail i always stuck in multi dim...
[10 replies] Last: In the first case, ptr1 is an int* , and a is int . a can be converte... (by Zhuge)
Program crashing upon running
 
I made a thread yesterday and I was told that I went out of the array limit, but when I test it with an int type array it works so I think it's becuase it is a ...
[2 replies] Last: The problem is that I need to change the size of the array with 1 so t... (by Alexander Dimitrov)
please help
 
Hello, Just wondering if anyone might have the patience to help me with my novice code I am reading from a 12bit ADC which is connected to a 4D systems displa...
[2 replies] Last: Thanks Disch..You are star! This has been doing my head in.. (by davelaser)
ifstream as argument without reference
 
How can I pass an ifstream argument without reference? int main(void) { ifstream stream; foo(stream); } // where foo is: void foo(ifstream...
[13 replies] Last: Fixed! Thank you. The error was that Blender's text export format wasn... (by rodrigoloc)
Sum
 
How would I go about summing up the individual rows and columns? Output would look like this ______ total 1 4 3 __ 7 5 ...
[2 replies] Last: The answer of how to sum array row and columns is here: http://www.cpl... (by Mats)
New here!! Another number guessing game ? (1,2)
 
Hey guys and gals!!!!! Got a little something that I need a few answers to and help with this code. { bool goOn=true; while(goOn) ...
[27 replies] Last: You would put cout << "Sorry!! The number we were lo... (by giblit)
Clearing Screens
 
Hey, guys. Ok, so I'm pretty much a newbie, but I'm going all out trying to be a legit coder eventually. So, I'm creating a "Polling Program" as a Practice P...
[3 replies] Last: @edwilke86 Here is a ClearScreen function. // ClearScreen.cpp : m... (by whitenite1)
question related with fscanf function
 
Write your question here. After compile and implementing this code, result file only print 0.0000 why this phenomenon occur? #include<stdio.h...
[no replies]
Need Help with loop for C++ Program
 
I need help creating a loop for this program, I can get the program to execute the desired function but after the function is executed I can't get it to loop ba...
[1 reply] : Use code tags. Looks like <> on the right when you go to make a post.... (by GRex2595)
Weird symbols in char array output
 
For some reason this code outputs some weird symbols after I enter any letter into the char array. MovieData.h #ifndef MOVIEDATA_H #define MOVIEDATA_H #inc...
[8 replies] Last: Thanks, got it to work with your help. Just edited the code on the top... (by joey0xx)
Recognizing Global Variables in Different Functions
 
Hey all, I am creating a text based RPG, nothing special, I am still a beginner, and I was wondering how I would be able to make global variables recognizab...
[1 reply] : In your character function, you're not storing it the global variable ... (by MikeyBoy)
trouble with returning a function
 
I am trying writing a program that will output all prime numbers less than or equal to the entered value. The math in the prime function is correct, but I canno...
[2 replies] Last: well to return cout you will have to return an ostream not an int. Tho... (by giblit)
Multiple sequence alingment
 
hi, can anyone please help me out for the code for multiple sequence alingment for 5 sequences?
[3 replies] Last: Yeah. It was rude of mutexe to not do something like post a link to a... (by MikeyBoy)
Moving chess pieces
 
Hey guys, It's my first post here, so I'm sorry if I do this incorrectly. I need some help. I'm trying to create a beginning program that is a basic ch...
[3 replies] Last: you could go OO and have a ChessPieceClass which would store the coord... (by mutexe)
My program works but I need help making a menu
 
So I made a program list that shows data from a person, the day they go to class and the name of their team. and open the result in a PDF #include <stdio.h> ...
[1 reply] : I forgot to say that the PDF´s are just a blank page with the names w... (by Esternocleido)
Defined user input color
 
Hello, I was wondering if it would be possible to create a statement that would allow all user input to be a different color than that of the computers outpu...
[2 replies] Last: Thank you, this helped and it works now ! :) (by CloudIsland)
by Mayah
Can someone check my code please?
 
Hi! On before hand, thanks for any help! I have written this code but it won't compile. It has been converted from Java to C++ so there might be some traces...
[2 replies] Last: If you want to build a class this might help you http://www.cplusplus... (by mobotus)
by jwilt
random number
 
I'm trying to get 500 random numbers between 1-100 and my random number generator is giving bad numbers. #include <iostream> #include <cstdlib> //Jaco...
[9 replies] Last: well I want it to loop 500 times and each spot in the array "should" h... (by jwilt)
by KamKan
Hangman game and the stick figure.
 
I am creating a hangman game and i just have some few codes and few ideas. Also, is it array i should use for the stickman? Am i going to use match++ for thes s...
[no replies]
October 2013 Pages: 1... 1920212223... 86
  Archived months: [sep2013] [nov2013]

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