199,114 Archived Topics
Remove Filter ![]() | |
I am writing a program in C not C++ how do I allow the user to input a name for the file, but not the extension. I will use the extension .csv always. | |
Hi, I'm totally new to C++ and so far am extremely confused. I was wondering if anyone could give me any help with one of my assignments. Basically I don't know where to even start. I think if maybe someone can help me get started maybe I can figure this … | |
hello guys. :confused: just a question about vectors: (sorry if it seems stupid, but i really don't know much about vectors) is it possible to return a vector or a pointer to vector from a function? if so, how? thanks in advance. | |
Ok, I've been trying to find and solve the problem with this source code by using the ddd debuger and I just can't. Here is the code. //lab1.cc, a driver for list.cc //CSCI 1120 //Will Briggs #include <iostream.h> #include "list.h" main () { Item Letters [MAX_ITEMS]; int num_letters = 0; … | |
Hello all I have a problem at hand. I need to work on a C code which will read multiple images in RAW format (greyscale) and do an AND operation of corresponding pixels of all the images. Can someone help out on this? I am a novice and would definitely … | |
when i compile this, it gives me an error for my #include "Rationall.h" statement........i dont know why its giving me an error. [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { public: rational(); ~rational(); int setrat( int x, int y); int getnum(); int getdenom(); private: int numerator; … | |
I know this is probably basic stuff with an easy solution, but I can't seem to find it anywhere in my textbook. I am working with an array of records. The user enters the data for each field of the record. The first field is a string entered by the … | |
I need to write a string field-char customer_name[20]- in a structure data type to a file using fprintf,fscanf,scanf. I failed to use the below syntax. Please I need to not go outside scanf,fprintf,printf . /* Book name : The prodessional programmers guide to C File name : E:\programs\tc\iti01\ch09\main\01setupm.c Program discription: … | |
The installation instructions to install php on a unix os is /.configure --with options make make install but there is no make file in the directory can i get some help please get some help | |
I have a JMenu with some radio buttons...For some reason, when I click the stupid things, they won't do anything...and by that, I mean they want change their state to being clicked(as in the circle being filled)..It's like they are disabled...I'll post the snippets of code with them in it: … | |
I've got a phpnuke site with the phpbb forum built in. When someone joins and chooses an avatar from the gallery it will not make the chosen avatar disappear. Anyone got any ideas on how to solve this obvious fault. I have searched for other posts answering the problem, but … | |
:cry: I have written this in [B]TCLite v1.x (Successful!) [/B]but when I ran it on BloodShed DevC++ v4.9.9.1 (Latest from Blood) it won't work!.. arrgg.. I need this functionalities.. ;-(.. for educational I typed [B]exactly[/B] these... [code] [COLOR=DarkOliveGreen] #include <iostream.h> #include <conio.h>[/COLOR] void main () { int mark; int sum; … | |
Please help... the problem... I run my programs, regardless of what I do seems I get the error C2017 continuous: the other errors at least I am given a "hint" to what to do: but this error constant! Listed as Illegal escape sequence. My errors are generally about 4-5 logic … | |
[URL]http://www.astercity.net/~28im42ga/test2.rar[/URL] i`ve got a problem for most of You it`s probably very simple so PLEASE help me!! i`ve made a modal window but any buttons placed there don`t work, it`s possible to click on them but nothing happens, the source code is not called here is an exapmle source code: … | |
I have a structure set up from some earlier help. Now when I try to write the data to the disk I only write zero's. I have no idea what I have done wrong or why this is happening. I realize this is not the complete program but shows the … | |
If I were to ask you "How should I get starting learning VB.NET?" What would you say? Thanks. | |
ok lets see if anyone can find the problem i have searched long and hard for this. i have a battle function and for some odd reason when ever i win the battle it loops the if statement saying that i am victorious 3 times (doing all the math and … | |
I have to apologize to the moderators that I was not sure where I should post my question. So if this is wrong fourm feel free to move it to a more suitable place, thank you. First of all I like to thank everyone here for their help in last … | |
I wish to use the round() function in the math class of the .net framework class library [C++] Math::Round(3.44, 1); //Returns 3.4. Math::Round(3.45, 1); //Returns 3.4. Math::Round(3.46, 1); //Returns 3.5. Ive tried just using the above, but the namespace specifier isn't working. Do i need to inclue a header file. … | |
I am a begging Assembler Student and I am having problems. When I run my program it is telling me I have a bad ASA control charecter. I have checked my program and I don't see anything wrong with it. Does anyone know what the problem could be? | |
[FONT=Courier New] Hey everybody! Im new to C++ and I have no experience with any other programming language. I downloaded a compiler from bloodshed.net and tried programming the 'hello world' program: [CODE]/*Hello world program. Seth Koberg 02/09/05 */ #include <iostream.h> int main() { cout<<"Hello World!"; return(0); }[/CODE] When I run … | |
I am using java server pages and connecting it to a simple access database. I have a form with about four columns in it. Two of the column are already filled out and the other two need filling out. In the two empty columns there are text boxes which allows … | |
Let's say I have two classes, Class1, and Class2..... Class2 creates and instance of Class1 and calls one of it's methods like this: [Code] Class 2 { Class1 c1 =new Class1(); c1.myMethod(); } [/Code] Now, that would work...But, could you have just the class variable instead of the class instance … | |
Hello everyone, Suppose I have a method which is a synchronized method (for example, method Foo in the following code block), and in this synchronized method another method which is not synchronized is invoked (for example, method Goo in the following code block). I am wondering when executing in Goo … | |
hi guys! please help me... :cry: i really don't know how to do this... part of the specs in my program is to show values after i used some formulas...but i need to make it such that i can scroll down/up to view my results, since i'll need to display … | |
This is the code that is suppose to compute the class's average and standard diviation from a file which contains a collection of student ids and corresponding scores from my computer class and assign each student a letter grade. the class can have no less than 7 students and no … | |
Hi I’ve got some clients who have there products on several sits and don’t wish keep entering data for each site. So I want to do some screen scraping but I’ve been having a problem creating a lazy regular expression that will allow me to put each table row from … | |
I took a course in C and now im into java. I never created anywith graphics in C. I need to finish a program in C that makes a red ball appear on a blue background and then move down and up the screen. Any information of how to at … | |
lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i … | |
Hi. Currently I am running a phpbb forum off of a server, and I was givin a javascript for a simple clock with date. I would love to learn how I can implement a second one, which reflects the exact time of another location across the world. i.e. a clock … | |
This is going to sound silly but i am really struggling to delete my internet history and search history. As others use my pc i do not want people to know what i have been searching for but it automatically comes on the drop down menu when the type a … | |
I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the … | |
I have to define a class for equilateral triangles. The triangle should be defined by a center point (x, y) and the length of the sides. The class should have a constructor which allows defining the triangle, a constructor with no arguments, and member functions for the x coordinate, y … | |
Can applets display images on the viewers hard drive somehow? If so how would I do that? And if I dont know the filenames but I know the directory, is there a way to do it? | |
Hello Php-Nukers. I`ve got a problem.. My forum doesnt work properly :rolleyes: [url]http://www.frustratie.com/modules.php?name=Forums[/url] I can see the forum load.. but cant put any topic or whatever . I`m using php 7.3 When i look into the module on the left i see a navigation column. when i click on forum … | |
Well once again I have some trouble getting my lab to work. I am currently having trouble on an algorithm that is supposed to count the neighbors next to a cell in a Two-dimensional array which is supposed to resemble with the algorithm of Conway's Game of Life. For some … | |
ok guys lets see if you can see what's wrong with my program i have so far. it is for a role playing game but when you choose to "attack" in the program, when i play it, it won't let me attack now. the problem would be in the gameplaychoice … | |
Ok, I have three queueus, MM, FP & TXT. Each of them contain objects which have variables associated with them. How do I access any of the variables that the front of my Queue points to? For example, I am trying to print out the name of the item that … | |
Hello everyone, I'm doing my bca 4th semester. I have to do a small project in c. I'm supposed to develop an editor using c. I need help. I've no idea how i can do this. I just have one month time. It can be anything like text editor...etc..etc. All … | |
This is my first post here and so far I have been doing fine in my last C++ class but right now I am stuck. I have to make a program using an array that is initialized dynamically. You have to make a program that will input the rooms of … | |
i am trying to make a program that displays to the screen the prime factors of a given number. i have it all the way to the prime number checking i dont quite understand how to extract the prime numbers any help would be much appreciated | |
Hi everyone, I am trying to save the contents the of the jtable together with all its fonts and everything else. The program compiles without any errors but When i try to save the contents of the JTable an exception is thrown in the tablesaveas method in the below method … | |
Working on a User Registration System and when I am testing my page on the browser (I'm developing using mac) - but its giving me a Parse error on line 27. please help, what am I doing wrong here? 1<?php require_once('Connections/db_d4f2005.php'); ?> 2 <?php 3 function sendMail($to, $hash) { 4 … | |
should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR] in declaring constant variables?? which one is better? when should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR]? for example when i declare a hexadecimal (0x01), should i use [COLOR=Green]#define [/COLOR]or [COLOR=Black]const[/COLOR]? | |
Need help on assembly in Dev C++. i know that Dev C++ uses AT&T instead of Intel. but i need to know how to use int 10h in Dev C++. can anyone show give me the code? | |
HI guys, This code dosn't compile, I think it is right but it gives an error when i use the -> to access the members of my struct. #include <stdio.h> #include <stddef.h> #define MAX_EVENTS 100 //Structure for Queue Elements struct Event { int event_type; int time_value; int bus_num; int bus_stop; … | |
I have the datasoure and drivers set up, but for some reason this code is not updating the database. [Code] import java.sql.*; public class TestCreateCoffeeTable { public TestCreateCoffeeTable() { } public static void main(String[] args) { try { String createStatement; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String dataSource = "jdbc:odbc:Coffeebreak"; Connection con = DriverManager.getConnection(dataSource); Statement … | |
I downloaded borland compiler but I dont know how to use it can someone help me | |
i need to create a class named rational, and i need to have the integer variables denominator and numerator in private. The i need to provide a constructor that enables an object of the class to be initialized when it is declared. then it says the constructor should contain default … | |
How do I import a picture from a sequential file. I want the sequential file to have the pathname and filename and that to load the picture as the image. |
The End.