199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alfarata

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.

Member Avatar for Narue
0
233
Member Avatar for dal4488

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 …

Member Avatar for vegaseat
0
607
Member Avatar for potential

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.

Member Avatar for potential
0
106
Member Avatar for Tomas Lopez

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; …

Member Avatar for Tomas Lopez
0
173
Member Avatar for ritcherjd

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 …

Member Avatar for ritcherjd
0
185
Member Avatar for seeplusplus

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; …

Member Avatar for Narue
0
173
Member Avatar for bwork

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 …

Member Avatar for Jackrabbit
0
113
Member Avatar for ehab_aziz2001

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: …

Member Avatar for Narue
0
145
Member Avatar for ridge321

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

Member Avatar for ridge321
0
103
Member Avatar for server_crash

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: …

Member Avatar for server_crash
0
146
Member Avatar for Sheriff Mole

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 …

Member Avatar for Sheriff Mole
0
153
Member Avatar for eastgate

: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; …

Member Avatar for eastgate
0
621
Member Avatar for star320

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 …

Member Avatar for star320
0
213
Member Avatar for gregg21

[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: …

Member Avatar for bombe
0
103
Member Avatar for Alfarata

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 …

Member Avatar for Alfarata
0
130
Member Avatar for BobbyRags

If I were to ask you "How should I get starting learning VB.NET?" What would you say? Thanks.

Member Avatar for Letscode
0
107
Member Avatar for evilsilver

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 …

Member Avatar for Coding Mage
0
176
Member Avatar for shahin

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 …

Member Avatar for shahin
0
229
Member Avatar for mattcplusplus

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. …

Member Avatar for Glued
0
122
Member Avatar for lrea_fallon

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?

Member Avatar for lrea_fallon
0
95
Member Avatar for ibassplayer205

[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 …

Member Avatar for Narue
0
175
Member Avatar for mastap

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 …

Member Avatar for mastap
0
96
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
96
Member Avatar for George2

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 …

Member Avatar for George2
0
170
Member Avatar for potential

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 …

Member Avatar for potential
0
114
Member Avatar for hopeolicious

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 …

Member Avatar for kon_t
0
163
Member Avatar for Mayhem50

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 …

Member Avatar for Mayhem50
0
101
Member Avatar for Mooonky

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 …

Member Avatar for Banderson
0
2K
Member Avatar for evilsilver

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 …

Member Avatar for evilsilver
0
117
Member Avatar for gurlzlubme

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 …

Member Avatar for [KIGR] Mordrid
0
195
Member Avatar for MissSneakyPaws

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 …

Member Avatar for vegaseat
0
197
Member Avatar for dr.danno

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 …

Member Avatar for vegaseat
0
88
Member Avatar for blackdove

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 …

Member Avatar for blackdove
0
161
Member Avatar for Gink

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?

Member Avatar for jwenting
0
94
Member Avatar for sayangjoy

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 …

Member Avatar for gmichae
0
613
Member Avatar for Lord Felix

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 …

Member Avatar for Lord Felix
0
198
Member Avatar for evilsilver

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 …

Member Avatar for evilsilver
0
99
Member Avatar for compshooter

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 …

Member Avatar for compshooter
0
145
Member Avatar for stackOverflow

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 …

Member Avatar for alc6379
0
143
Member Avatar for roscioeak@direc

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 …

Member Avatar for alc6379
0
106
Member Avatar for fopah

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

Member Avatar for Asif_NSU
0
352
Member Avatar for freesoft_2000

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 …

Member Avatar for freesoft_2000
0
119
Member Avatar for jsamson

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 …

Member Avatar for fambi
0
111
Member Avatar for odee

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]?

Member Avatar for odee
0
203
Member Avatar for odee

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?

Member Avatar for odee
0
157
Member Avatar for F50

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; …

Member Avatar for Intel
0
193
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
144
Member Avatar for hopeolicious

I downloaded borland compiler but I dont know how to use it can someone help me

Member Avatar for evilsilver
0
108
Member Avatar for seeplusplus

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 …

Member Avatar for Dave Sinkula
0
90
Member Avatar for nicole0904

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.

Member Avatar for Comatose
0
210

The End.