88 Topics
|
|
Hey everyone, I tried testing this code if it is true or not. But,apparently, it is indeed true. So, it is not like referencing an element in array and changing its value. Can someone explain it why this is exceptional with numbers, please? var a = 3.14; // Declare and … |
|
a simple c++ program for an adress book that adds contact, stores the contacts and searches for the contact... it should have only one class called class addy_book..i called a constructor and am stuck coz i don't know where to go from here #include <iostream> #include <fstream> using namespace std; … |
|
Hello all, I have a simple html/css based drop down menu. It works fine in Chrome, however it doesn't work at all in IE 8. Does anyone have a fix for this? The link to the site is: http://cecvp.net.s41035.gridserver.com/ Thanks for anyone who helps me out! |
|
Its an exam question that wants to modify code so that the following output is generated 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 **This was the original code** #include<stdio.h> void main() { int i,j; for(i=1;i<5;i++) { for(j=1;j<=5;j++) { printf("%d",i); } printf("\n"); } … |
|
Ello, Firstly let me preface this with the fact that I'm absolutely hopeless at ASP.net. I know the basics, but that's it. Right, I'm trying to fix a property site coded in ASP.net. On the property landing page, there is a small gallery of thumbnail images below a larger one … |
|
Hi all. I want to make a facebook bot that will answer questions that get sent to me. I need to know how to make my application send and receive messages. Thanks. |
|
Hello I'm a beginner at c++ I got these questions for homework. Would appreciate answers to these questions. Consider the following code for these questions const int NUMBER_OF_ITEMS = 5; double nums [NUMBER_OF_ITEMS]; Question 1 What is the index of the first and last element in the array? Question 2 … |
|
Hello I'm a beginner at c++ I got these questions for homework. Would appreciate answers to these questions. Consider the following code for these questions const int NUMBER_OF_ITEMS = 5; double nums [NUMBER_OF_ITEMS]; Question 1 What is the index of the first and last element in the array? Question 2 … |
|
So the function: [CODE]glLoadIdentity();[/CODE] resets the matrix, so for instance we do this: [CODE]glMatrixMode(GL_PROJECTION); glLoadIdentity();[/CODE] how exactly does this work, it seems that we set the matrix and then just return it to the way it used to be. |
|
Im creating a banking system for a university assignment. Basically I have been struggling with encrypting user data. Its a first year assignment (in a 3 year bachelor) please bear this in mind when commenting x))) [CODE] //The constructor sets the global veriable key to a user defined value. //The … |
|
Example code: [CODE]HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle, const RECT& rc,const int id,const ustring& caption) { dwStyle|=WS_CHILD|WS_VISIBLE; return CreateWindowEx(0, _T("button"), caption.c_str(), dwStyle, rc.left, rc.top, rc.right, rc.bottom, hParent, reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)), hInst, 0); }[/CODE] The part I dont get is: [CODE]dwStyle|=WS_CHILD|WS_VISIBLE;[/CODE] So the question would be why do we use '|' and … |
|
Hello! My friend recommended that I try this site if I needed advice on my programs, so I thought 'hey, why not?'. I'm working on a program that is to draw shapes and store them in arrays. I kinda can't figure out how to make my print functions work correctly. … |
|
Hi! I'm making a chess program, that need to move pieces on the chess board, get an input,check if the move is valid and print the output. The compiler finds some errors that i don't understand...I need some help with the pieces functions. Plz help me fix them!!! my attempts … |
|
My professor told me these things are wrong:1) For getting the "#" sign in your board, you need to call the createTicTacToeBoard() method to create the board. The returning type of the method is char[][] createTicTacToeBoard() not the string, and you don't need to pass any array into this method … |
|
Hello All, I'm trying to create three independent animations that all occur in one main frame. I have to use the following methods in my code [CODE]--- Animate --- public interface Animate { void move( double x, double y); void changeConfiguration(); } --- Drawable ----- import java.awt.Graphics2D; public interface Drawable … |
|
Hey guys, I am very new to c++, and im trying to learn and master the basics Could you guys please tell me what i am doing wrong here. I want to maintain my current coding format. This is a simple converting code. Will be accepting inches, and feet, that … |
|
So basically I have to write a simple calculator, that fine and I did it. The only problem is it can only operate on the 2 numbers which the user puts in. I want to make it like a real calculator that you carry around in your pocket. Example: "Calculate: … |
|
Hi everyone i have this simple banking program here and i was hoping someone could help me jazz it up.. Something simple like making it easier to use or making it look better. Just trying to go beyond what was asked for.. [CODE] import javax.swing.JOptionPane; class MiniLab5z { public static … |
|
Hey guys, I know this will have an easy answer, but I have been awake far too long to see it :P I am doing some coding with classes in python, and it just isn't working. Here is the code: [CODE] from bpy import * from os import * from … |
|
Hi guys. so i wanna code my own Simple Dos-like OS that boots to a prompt with the simple command of "Hello" which should load a message that says "Hello, World!". Would someone be generous enough to give me some source code that just boots and has the command "Hello". … |
|
Okay, so I'm new to C++ programming and am working on a simplified project to find Expected taxable income. The project states that I have to set SI, HH, MJ, and MS as const int variables equal respectively to 5700, 8350 11400, and 5700. const int SI = 5700; const … |
|
[CODE] import java.io.*; public class CheckersGame { public static void main (String []args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); System.out.print("Enter name of the first to move: "); String name = jill.readLine(); System.out.print("Enter name of " + name + "'s opponent: "); String opo = jill.readLine(); … |
|
hi people I have a project that requires me to use time.h in animation. can anyone show me a simple code of animation using time.h??? |
|
heyy pplz I'm new to programming and C just now decided to set myself a project and chose to make a simple roulette game so far i got a basic idea but would require too much code and am sure there must be a simpler way.. if anyone could help … |
|
So i just started learning SDL and came across "Event driven programming", just wanted to be sure if i understood the tutorial correcly. So lets say by adding: [CODE]SDL_Event event;[/CODE] i add lets say a container that keeps track of every event i do? After that i start using: [CODE]while … |
|
Is anybody know what is the easiest way to encrypt and decrypt text from textbox? Thank you in advance. Good day! |
|
Hows it going guys, I just had a question, which I think is simple, but I cant seem to get my head around to the solution. I have a Signals Processing lab coming up on modulation and demodulation. Anyway to cut to the chase, one part of the system requires … |
|
Hello, I need advice. Ive been using Microsoft Visual studio 2008 and making c++ console applications for some time. I made a "Five in line" game. I have a complete system, so its playable, now i just upgrade an AI. So, I have the code for console version, but I … |
|
I'd like to modify a form on [url]www.formsite.com[/url] (form builder app): username: testuser password: password I would like to use the nicedit.com's inline content editor's js to transform my textarea's into a richtext area. At present the nicedit editor works well in creating the richtextarea. However, the KEY point is … |
|
Hey guys!! been a while since I posted here, but thought I'd post this question here cause it is driving me insane!! Basically, if the condition returns true, then that part works. but if it's false, neither part works. If I put the content from the else after the <script> … |
The End.